Getting started: attributes.

Super super basic collection of attributes. Nothing fancy.
This commit is contained in:
Steve Klabnik
2014-07-09 16:16:39 -04:00
parent a45b5eeda3
commit 729a823868
9 changed files with 68 additions and 13 deletions

12
test/fixtures/poro.rb vendored Normal file
View File

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