diff --git a/lib/architect4r/model/node.rb b/lib/architect4r/model/node.rb index 45858bc..763c9c9 100644 --- a/lib/architect4r/model/node.rb +++ b/lib/architect4r/model/node.rb @@ -3,6 +3,10 @@ module Architect4r module Model class Node + + # + # architect4r extensions + # include Architect4r::Model::Connection include Architect4r::Model::Callbacks include Architect4r::Model::Persistency @@ -11,6 +15,8 @@ class Node def self.inherited(subklass) super + subklass.send(:include, ActiveModel::Conversion) + subklass.extend ActiveModel::Naming subklass.send(:include, Architect4r::Model::Properties) subklass.send(:include, Architect4r::Model::Validations) diff --git a/lib/architect4r/model/relationship.rb b/lib/architect4r/model/relationship.rb index fd30614..775c2c9 100644 --- a/lib/architect4r/model/relationship.rb +++ b/lib/architect4r/model/relationship.rb @@ -3,7 +3,7 @@ module Model class Relationship # - # Extensions + # Architect4r extensions # include Architect4r::Model::Connection include Architect4r::Model::Callbacks @@ -12,6 +12,8 @@ class Relationship def self.inherited(subklass) super + subklass.send(:include, ActiveModel::Conversion) + subklass.extend ActiveModel::Naming subklass.send(:include, Architect4r::Model::Properties) subklass.send(:include, Architect4r::Model::Validations)