Skip to content

Commit

Permalink
Change RAILS_ROOT on Rails.root.to_s
Browse files Browse the repository at this point in the history
  • Loading branch information
fusco committed Jan 6, 2011
1 parent 93e640d commit 7a5bd12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/mediabrowser_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class MediabrowserController < ApplicationController


def define_path
@public_path = File.join(RAILS_ROOT, 'public')
@public_path = File.join(Rails.root.to_s, 'public')
@uploads_url = '/uploads'
@upload_path = File.join(@public_path, @uploads_url)
@current_url = params[:dir] || @uploads_url
Expand Down

0 comments on commit 7a5bd12

Please sign in to comment.