Skip to content
Browse files

remove deprecated call to RAILS_ROOT

  • Loading branch information...
1 parent 3cf4778 commit 8962f907fbecc62bfc871e2bb37872d3cdc7a56f @heavysixer committed Jul 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/initializers/tableau_trusted_interface.rb
View
2 config/initializers/tableau_trusted_interface.rb
@@ -11,7 +11,7 @@ def initialize
## class method because we will need to access this elsewhere in singleton mode
def self.config
- @@config ||= YAML::load(ERB.new((IO.read("#{RAILS_ROOT}/config/tableau.yml"))).result)[Rails.env].symbolize_keys
+ @@config ||= YAML::load(ERB.new((IO.read("#{::Rails.root.to_s}/config/tableau.yml"))).result)[Rails.env].symbolize_keys
end
def server

0 comments on commit 8962f90

Please sign in to comment.
Something went wrong with that request. Please try again.