instiki/vendor/rails/activemodel/lib/active_model.rb
Jacques Distler 516d6dfac0 Rails 2.1
Update to Rails 2.1 final.
2008-06-02 01:35:38 -05:00

17 lines
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