class Protobuf::ActiveRecord::Serialization::ClassMethods::CollectionAssociationCaller
Public Class Methods
Source
# File lib/protobuf/active_record/serialization.rb, line 138 def initialize(method_name) @method_name = method_name end
Public Instance Methods
Source
# File lib/protobuf/active_record/serialization.rb, line 142 def call(selph) selph.__send__(@method_name).to_a rescue NameError # Has happened when field is not on model or ignored from db nil end