Sha256: 29887837fc1ca77e5fc571cc61e393dc61a3602a01232129c8f69f6849533955

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

module Findable
  class Railtie < ::Rails::Railtie
    initializer "findable" do
      ActiveSupport.on_load(:active_record) do
        ::ActiveRecord::Base.send(:extend, Findable::Association)
      end
    end

    rake_tasks do
      load "tasks/findable.rake"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
findable-0.0.3 lib/findable/railtie.rb
findable-0.0.2 lib/findable/railtie.rb