aboutsummaryrefslogblamecommitdiffstats
path: root/activemodel/lib/active_model.rb
blob: 369c7fed33d368b42a643268f20f0c40d2253f73 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                   
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', '..', 'activesupport', 'lib')

# premature optimization?
require 'active_support/inflector'
require 'active_support/core_ext/string/inflections'
String.send :include, ActiveSupport::CoreExtensions::String::Inflections

require 'active_model/base'
require 'active_model/observing'
require 'active_model/callbacks'
require 'active_model/validations'

ActiveModel::Base.class_eval do
  include ActiveModel::Observing
  include ActiveModel::Callbacks
  include ActiveModel::Validations
end