Better AMS Model attributes interface

This commit is contained in:
Benjamin Fleischer
2016-11-20 23:25:09 -06:00
parent cd09e89006
commit 772b7999c5
12 changed files with 21 additions and 15 deletions

View File

@@ -110,7 +110,7 @@ class SomeResource < ActiveRecord::Base
end
# or
class SomeResource < ActiveModelSerializers::Model
attr_accessor :title, :body
attributes :title, :body
end
```