Serializers now inherit attributes and associations.

This commit is contained in:
Stas SUȘCOV
2013-12-11 17:22:07 +02:00
parent 2faa571a9c
commit 0febd8f628
3 changed files with 26 additions and 2 deletions

View File

@@ -13,8 +13,8 @@ module ActiveModel
class << self
def inherited(base)
base._attributes = []
base._associations = {}
base._attributes = (self._attributes || []).dup
base._associations = (self._associations || {}).dup
end
def setup