active_model_serializers/test/fixtures/poro.rb
Steve Klabnik 729a823868 Getting started: attributes.
Super super basic collection of attributes. Nothing fancy.
2014-07-09 16:16:39 -04:00

13 lines
186 B
Ruby

class Model
def initialize(hash={})
@attributes = hash
end
end
class Profile < Model
end
class ProfileSerializer < ActiveModel::Serializer
attributes :name, :description
end