Method: Resourceful::Serialize::Array#to_serializable
- Defined in:
- lib/resourceful/serialize.rb
#to_serializable(attributes) ⇒ Object
See the module documentation for Serialize for details.
168 169 170 171 172 173 174 175 |
# File 'lib/resourceful/serialize.rb', line 168 def to_serializable(attributes) if first.respond_to?(:to_serializable) attributes = Serialize.normalize_attributes(attributes) map { |e| e.to_serializable(attributes) } else self end end |