Sha256: ca9df727b4e6372377fb7105e9bad4a2bf55246429595268ca87c1511e1a6be4

Contents?: true

Size: 237 Bytes

Versions: 3

Compression:

Stored size: 237 Bytes

Contents

module Slugs
  class Railtie < Rails::Railtie

    initializer 'slugs' do
      ::ActiveRecord::Base.send :include, Slugs::ActiveRecord::Base
      ::ActiveRecord::Relation.send :include, Slugs::ActiveRecord::Relation
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slugs-1.2.5 lib/slugs/railtie.rb
slugs-1.2.4 lib/slugs/railtie.rb
slugs-1.2.3 lib/slugs/railtie.rb