Sha256: 8533ad44e076b3b36c163826a201675633f339f7f6dd7d6d82dfc0462619137e

Contents?: true

Size: 292 Bytes

Versions: 10

Compression:

Stored size: 292 Bytes

Contents

# Rails 3 initialization
module Symbolize
  require 'rails'
  class Railtie < Rails::Railtie
    initializer 'symbolize.insert_into_active_record' do
      ActiveSupport.on_load :active_record do
        ::ActiveRecord::Base.send :include, Symbolize::ActiveRecord
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
symbolize-4.5.2 lib/symbolize/railtie.rb
symbolize-4.5.1 lib/symbolize/railtie.rb
symbolize-4.5.0 lib/symbolize/railtie.rb
symbolize-4.4.1 lib/symbolize/railtie.rb
symbolize-4.4.0 lib/symbolize/railtie.rb
symbolize-4.3.4 lib/symbolize/railtie.rb
symbolize-4.3.3 lib/symbolize/railtie.rb
symbolize-4.3.2 lib/symbolize/railtie.rb
symbolize-4.3.1 lib/symbolize/railtie.rb
symbolize-4.3.0 lib/symbolize/railtie.rb