Sha256: df746eed62c2a9f3f6b8b5f6facc4e0584585fcf683bb6fb0bc0795273552c80
Contents?: true
Size: 772 Bytes
Versions: 3
Compression:
Stored size: 772 Bytes
Contents
require 'rails' module Html5Validators @enabled = true def self.enabled @enabled end def self.enabled=(enable) @enabled = enable end class Railtie < ::Rails::Railtie #:nodoc: initializer 'html5_validators' do |app| ActiveSupport.on_load(:active_record) do require 'html5_validators/active_model/helper_methods' require 'html5_validators/active_model/validations' if (Rails.version < '3.1.0.beta2') && (Rails.version != '3.1.0') require 'html5_validators/active_model/initializer_monkey_patches' end require 'html5_validators/active_record/base' end ActiveSupport.on_load(:action_view) do require 'html5_validators/action_view/form_helpers' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
html5_validators-1.2.2 | lib/html5_validators.rb |
html5_validators-1.2.1 | lib/html5_validators.rb |
html5_validators-1.2.0 | lib/html5_validators.rb |