Skip to content
This repository
tag: v0.3
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 13 lines (9 sloc) 0.461 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
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 }
Something went wrong with that request. Please try again.