Commit 40207c74 by Prem Sichanugrist

Fix whitespace errors

parent 9d1355b5
module Paperclip module Paperclip
class AttachmentAdapter class AttachmentAdapter
def initialize(target) def initialize(target)
@target = target @target = target
cache_current_values cache_current_values
...@@ -62,7 +61,6 @@ module Paperclip ...@@ -62,7 +61,6 @@ module Paperclip
end end
dest dest
end end
end end
end end
......
require 'set' require 'set'
module Paperclip module Paperclip
class << self class << self
attr_accessor :classes_with_attachments attr_accessor :classes_with_attachments
attr_writer :registered_attachments_styles_path attr_writer :registered_attachments_styles_path
...@@ -12,7 +11,6 @@ module Paperclip ...@@ -12,7 +11,6 @@ module Paperclip
self.classes_with_attachments = Set.new self.classes_with_attachments = Set.new
# Get list of styles saved on previous deploy (running rake paperclip:refresh:missing_styles) # Get list of styles saved on previous deploy (running rake paperclip:refresh:missing_styles)
def self.get_registered_attachments_styles def self.get_registered_attachments_styles
YAML.load_file(Paperclip.registered_attachments_styles_path) YAML.load_file(Paperclip.registered_attachments_styles_path)
...@@ -83,5 +81,4 @@ module Paperclip ...@@ -83,5 +81,4 @@ module Paperclip
end end
end end
end end
end end
...@@ -44,5 +44,4 @@ class AttachmentAdapterTest < Test::Unit::TestCase ...@@ -44,5 +44,4 @@ class AttachmentAdapterTest < Test::Unit::TestCase
assert_equal expected.length, actual.length assert_equal expected.length, actual.length
assert_equal expected, actual assert_equal expected, actual
end end
end end
...@@ -5,7 +5,6 @@ Fog.mock! ...@@ -5,7 +5,6 @@ Fog.mock!
class FogTest < Test::Unit::TestCase class FogTest < Test::Unit::TestCase
context "" do context "" do
context "with credentials provided in a path string" do context "with credentials provided in a path string" do
setup do setup do
rebuild_model :styles => { :medium => "300x300>", :thumb => "100x100>" }, rebuild_model :styles => { :medium => "300x300>", :thumb => "100x100>" },
......
...@@ -3,7 +3,6 @@ require 'aws' ...@@ -3,7 +3,6 @@ require 'aws'
unless ENV["S3_BUCKET"].blank? unless ENV["S3_BUCKET"].blank?
class S3LiveTest < Test::Unit::TestCase class S3LiveTest < Test::Unit::TestCase
context "when assigning an S3 attachment directly to another model" do context "when assigning an S3 attachment directly to another model" do
setup do setup do
rebuild_model :styles => { :thumb => "100x100", :square => "32x32#" }, rebuild_model :styles => { :thumb => "100x100", :square => "32x32#" },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment