lib/search_party.rb in laserlemon-search_party-0.2.0 vs lib/search_party.rb in laserlemon-search_party-0.2.1

- old
+ new

@@ -48,10 +48,17 @@ def assign_shortcuts_with_search_party(request, response) @_search_params = request.search_parameters assign_shortcuts_without_search_party(request, response) end end + + module View + def self.included(base) + base.delegate :search_params, :to => :controller + end + end end end ActionController::Request.send(:include, LaserLemon::SearchParty::Request) ActionController::Base.send(:include, LaserLemon::SearchParty::Controller) +ActionView::Base.send(:include, LaserLemon::SearchParty::View)