lib/soulless.rb in soulless-0.2.0 vs lib/soulless.rb in soulless-0.3.0

- old
+ new

@@ -1,24 +1,13 @@ require 'virtus' require 'securerandom' -require 'active_support/core_ext/array/wrap' -require 'active_support/core_ext/class/attribute' -require 'active_support/core_ext/module/delegation' -require 'active_support/callbacks' -require 'active_support/concern' -require 'active_support/inflector' -require 'active_model/naming' -require 'active_model/translation' -require 'active_model/callbacks' -require 'active_model/validator' -require 'active_model/errors' -require 'active_model/validations' -require 'active_model/conversion' -require 'active_model/version' +require 'active_support' +require 'active_model' -require 'soulless/model' require 'soulless/associations' +require 'soulless/dirty' +require 'soulless/model' require 'soulless/validations' require 'soulless/version' module Soulless I18n.load_path += Dir.glob('lib/soulless/locale/*.{rb,yml}') @@ -28,9 +17,10 @@ mod.define_singleton_method :included do |object| object.send(:include, Virtus.model(options)) object.send(:include, Model) object.send(:include, Associations) object.send(:include, Validations) + object.send(:include, Dirty) end mod end end