mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
5dc3f91832
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
17 lines
No EOL
539 B
Ruby
17 lines
No EOL
539 B
Ruby
$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 |