Skip to content

Commit

Permalink
Changed base_path to return a String.. Fixes error 'Cant convert Path…
Browse files Browse the repository at this point in the history
…name to String' when calling public_filename..
  • Loading branch information
acuizon committed Jun 8, 2011
1 parent 1604941 commit 586884d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -25,7 +25,7 @@ def full_filename(thumbnail = nil)

# Used as the base path that #public_filename strips off full_filename to create the public path
def base_path
@base_path ||= Rails.root.join('public')
@base_path ||= Rails.root.join('public').to_s
end

# The attachment ID used in the full path of a file
Expand Down

0 comments on commit 586884d

Please sign in to comment.