Skip to content

Instantly share code, notes, and snippets.

@ChasManRors
Created March 29, 2012 21:55
Show Gist options
  • Save ChasManRors/2244153 to your computer and use it in GitHub Desktop.
Save ChasManRors/2244153 to your computer and use it in GitHub Desktop.
In /app/decorators/controllers/refinery/available_agents_controller_decorator.rb
Refinery::AvailableAgentsController.class_eval do
before_filter :find_all_available_agents
protected
def find_all_available_agents
@response_code, @searchtext, @agents = nil,nil,nil
end
end
ruby-1.9.3-p125@fewizabcd $ rake refinery:override
rake aborted!
uninitialized constant Refinery::AvailableAgentsController
Tasks: TOP => refinery:override => environment
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment