Skip to content

Commit

Permalink
fixing RAILS_ROOT deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaujean committed Apr 30, 2011
1 parent 804962c commit d467345
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/models/image_decorator.rb
Expand Up @@ -5,25 +5,25 @@
:styles => {
:mini => {
:geometry => '48x48>',
:watermark_path => "#{RAILS_ROOT}/public/images/watermarks/tiny.png",
:watermark_path => "#{Rails.root.to_s}/public/images/watermarks/tiny.png",
:watermark_position => "SouthWest",
:format => :png,
},
:small => {
:geometry => '100x100>',
:watermark_path => "#{RAILS_ROOT}/public/images/watermarks/small.png",
:watermark_path => "#{Rails.root.to_s}/public/images/watermarks/small.png",
:watermark_position => "SouthWest",
:format => :png,
},
:product => {
:geometry => '240x240>',
:watermark_path => "#{RAILS_ROOT}/public/images/watermarks/product.png",
:watermark_path => "#{Rails.root.to_s}/public/images/watermarks/product.png",
:watermark_position => "SouthWest",
:format => :png,
},
:large => {
:geometry => '600x600>',
:watermark_path => "#{RAILS_ROOT}/public/images/watermarks/large.png",
:watermark_path => "#{Rails.root.to_s}/public/images/watermarks/large.png",
:watermark_position => "SouthWest",
:format => :png,
},
Expand Down
2 changes: 1 addition & 1 deletion spree_watermark.gemspec
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'spree_watermark'
s.version = '0.50.2'
s.version = '0.50.3'
s.summary = 'adds watermarking to incoming product images'
s.description = 'Adds watermarking to incoming product images'
s.required_ruby_version = '>= 1.9.2'
Expand Down

0 comments on commit d467345

Please sign in to comment.