Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 461 Bytes
require 'live_validations'
# Dynamic adapter loading.
ActiveSupport::Dependencies.load_paths.unshift(File.join(File.dirname(__FILE__), 'lib'))
# Hook into ActiveRecord.
ActiveRecord::Base.class_eval { include LiveValidations::ActiveRecordHooks }
# Hook view helpers
ActionView::Base.class_eval { include LiveValidations::ViewHelpers }
## Hook into the default form builder
ActionView::Helpers::FormBuilder.class_eval { include LiveValidations::FormBuilder }
Jump to Line
Something went wrong with that request. Please try again.