lib/soulless.rb in soulless-0.6.0 vs lib/soulless.rb in soulless-1.0.0
- old
+ new
@@ -1,32 +1,14 @@
-require 'virtus'
-require 'securerandom'
-require 'active_support'
require 'active_model'
+require 'virtus'
-require 'soulless/accessors'
-require 'soulless/associations'
+require 'soulless/attributes'
+require 'soulless/callbacks'
require 'soulless/dirty'
require 'soulless/inheritance'
-require 'soulless/model'
require 'soulless/validations'
+require 'soulless/model'
require 'soulless/version'
-require 'soulless/railtie' if defined?(Rails)
-
module Soulless
- I18n.load_path += Dir.glob('lib/soulless/locale/*.{rb,yml}')
-
- def self.model(options = {})
- mod = Module.new
- 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)
- object.send(:include, Accessors)
- object.send(:include, Inheritance)
- end
- mod
- end
+ # Your code goes here...
end