lib/searchkick.rb in searchkick-0.0.2 vs lib/searchkick.rb in searchkick-0.1.0

- old
+ new

@@ -2,8 +2,9 @@ require "searchkick/reindex" require "searchkick/search" require "searchkick/model" require "searchkick/tasks" require "tire" -require "active_record" # TODO only require active_model -ActiveRecord::Base.send(:extend, Searchkick::Model) +# TODO find better ActiveModel hook +ActiveModel::AttributeMethods::ClassMethods.send(:include, Searchkick::Model) +ActiveRecord::Base.send(:extend, Searchkick::Model) if defined?(ActiveRecord)