Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Paperclip::Interpolations was trying to access the Rails constant; ov…
…errode those module methods and include it in spec_helper.
- Loading branch information
Showing
4 changed files
with
75 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,13 @@ | |||
module Paperclip | |||
module Interpolations | |||
# Returns the Rails.root constant. | |||
def rails_root attachment, style_name | |||
ROOT_DIR | |||
end | |||
|
|||
# Returns the Rails.env constant. | |||
def rails_env attachment, style_name | |||
'test' | |||
end | |||
end | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters