lib/searchlogic.rb in joost-searchlogic-2.1.5.2 vs lib/searchlogic.rb in joost-searchlogic-2.1.5.3
- old
+ new
@@ -23,9 +23,10 @@
alias_method :search, :searchlogic
end
end
end
-if defined?(ActionController)
+if defined?(ActionView)
require "searchlogic/rails_helpers"
- ActionController::Base.helper(Searchlogic::RailsHelpers)
+ ActionView::Base.alias_method_chain :form_for, :searchlogic
+ ActionView::Base.alias_method_chain :fields_for, :searchlogic
end
\ No newline at end of file