Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Search for views from RAILS_ROOT instead of the cwd of the dispatcher
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Sanheim <rsanheim@gmail.com>
  • Loading branch information
therealadam authored and rsanheim committed Sep 13, 2009
1 parent baaf7ab commit 1109afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/brain_buster_system.rb
Expand Up @@ -10,7 +10,7 @@ module BrainBusterSystem
# Expose helper methods and setup config for brain buster
def self.included(obj)
obj.helper_method :captcha_passed?, :last_captcha_attempt_failed?
obj.append_view_path File.expand_path(File.join("vendor", "plugins", "brain_buster", "views", "brain_busters"))
obj.append_view_path File.expand_path(File.join(RAILS_ROOT, "vendor", "plugins", "brain_buster", "views", "brain_busters"))
obj.class_eval do
@@brain_buster_salt ||= "fGr0FXmYQCuW4TiQj/x3yPBTp5lcJ9l6DbO8CUpReDk="
@@brain_buster_failure_message = "Your captcha answer failed - please try again."
Expand Down

0 comments on commit 1109afc

Please sign in to comment.