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

Commit

Permalink
RAILS_ROOT is deprecated, use ::Rails.root instead
Browse files Browse the repository at this point in the history
  • Loading branch information
adriandulic committed Jun 12, 2011
1 parent 5272661 commit 5e51107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/uservoice/instance_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def self.included(mod)
# Can be overridden.
#
def uservoice_configuration_file #:nodoc:
"#{RAILS_ROOT}/config/uservoice.yml"
"#{::Rails.root}/config/uservoice.yml"
end

# Returns the uservoice configuration hash.
Expand Down

0 comments on commit 5e51107

Please sign in to comment.