Sha256: 964e7606bba9deead3cba377e345253f53cdef805e2c83167b63006e38068647

Contents?: true

Size: 258 Bytes

Versions: 11

Compression:

Stored size: 258 Bytes

Contents

# Extend ActiveRecord's methods
module ValidatesFormattingOf
  class Railtie < Rails::Railtie
    initializer 'validates_formatting_of.model_additions' do
      ActiveSupport.on_load :active_record do
        extend ModelAdditions
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
validates_formatting_of-0.3.6 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.3.5 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.3.4 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.3.3 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.3.2 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.3.1 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.3.0 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.2.3 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.2.2 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.2.1 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.2.0 lib/validates_formatting_of/railtie.rb