lib/attach_it/attachment_options.rb in mm-attach-it-0.2.0 vs lib/attach_it/attachment_options.rb in mm-attach-it-0.2.1

- old
+ new

@@ -103,10 +103,10 @@ end end private def interpolate(source = nil, style_name = nil) - result = source.gsub(/\:rails_root/, Rails.root) + result = source.gsub(/\:rails_root/, Rails.root.to_s) result.gsub!(/\:environment/, Rails.env) result.gsub!(/\:filename/, @filename.nil? ? '' : @filename) result.gsub!(/\:extension/, @extension.nil? ? '' : @extension) result.gsub!(/\:style/, style_name.to_s) result.gsub!(/\:id/, @object_id)