Merge pull request #468 from stas/attrs_and_assoc_inheritance

Serializers now inherit attributes and associations.
This commit is contained in:
Santiago Pastorino
2013-12-16 11:14:16 -08:00
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