lib/findable/railtie.rb in findable-0.0.1 vs lib/findable/railtie.rb in findable-0.0.2

- old
+ new

@@ -1,6 +1,12 @@ 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