Sha256: 0dc28b9c5e165773cb02d67d7c7dd47aed5217b77113738b367407d59e1ee856

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 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

    initializer 'validates_formatting_of.validations' do
      ActiveSupport.on_load :active_record do
        include Validations
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
validates_formatting_of-0.9.0 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.8.1 lib/validates_formatting_of/railtie.rb
validates_formatting_of-0.8.0 lib/validates_formatting_of/railtie.rb