Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v0.3
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (9 sloc) 0.461 kB
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.