lib/ninja_model/callbacks.rb in ninja-model-0.7.3 vs lib/ninja_model/callbacks.rb in ninja-model-0.8.0
- old
+ new
@@ -1,5 +1,9 @@
module NinjaModel
- class Base
- extend ActiveModel::Callbacks
+ module Callbacks
+ extend ActiveSupport::Concern
+
+ included do
+ extend ActiveModel::Callbacks
+ end
end
end