method
serializable_method_attributes
v2.2.1 -
Show latest stable
- Class:
ActiveRecord::XmlSerializer
serializable_method_attributes()public
No documentation available.
# File activerecord/lib/active_record/serializers/xml_serializer.rb, line 192
def serializable_method_attributes
Array(options[:methods]).inject([]) do |method_attributes, name|
method_attributes << MethodAttribute.new(name.to_s, @record) if @record.respond_to?(name.to_s)
method_attributes
end
end