lib/hari/entity.rb in hari-0.0.3 vs lib/hari/entity.rb in hari-0.0.4
- old
+ new
@@ -5,9 +5,14 @@
module Hari
class Entity
extend ActiveModel::Naming
extend ActiveModel::Callbacks
include ActiveModel::Validations
+
+ autoload :Property, 'hari/entity/property'
+ autoload :Repository, 'hari/entity/property'
+ autoload :Serialization, 'hari/entity/property'
+
extend Property::Builder
include Repository
include Serialization
define_model_callbacks :create, :update, :destroy, :save