Sha256: 90cd3d683778fb31275bcb438c67125e9246dfd7b693858de452b29207b3069f

Contents?: true

Size: 282 Bytes

Versions: 10

Compression:

Stored size: 282 Bytes

Contents

require 'acts_as_hashids/methods'

module ActsAsHashids
  class Railtie < Rails::Railtie
    initializer 'acts_as_hashids.include_methods' do
      ActiveSupport.on_load :active_record do
        ActiveRecord::Base.send(:include, ActsAsHashids::Methods)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
acts_as_hashids-0.2.0 lib/acts_as_hashids/railtie.rb
acts_as_hashids-0.1.9 lib/acts_as_hashids/railtie.rb
acts_as_hashids-0.1.8 lib/acts_as_hashids/railtie.rb
acts_as_hashids-0.1.6 lib/acts_as_hashids/railtie.rb
acts_as_hashids-0.1.5 lib/acts_as_hashids/railtie.rb
acts_as_hashids-0.1.4 lib/acts_as_hashids/railtie.rb
acts_as_hashids-0.1.3 lib/acts_as_hashids/railtie.rb
acts_as_hashids-0.1.2 lib/acts_as_hashids/railtie.rb
acts_as_hashids-0.1.1 lib/acts_as_hashids/railtie.rb
acts_as_hashids-0.1.0 lib/acts_as_hashids/railtie.rb