Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/paperclip.rb
View
4 lib/paperclip.rb
@@ -319,7 +319,7 @@ def has_attached_file name, options = {}
if respond_to?(:class_attribute)
self.attachment_definitions = {}
else
- write_inheritable_attribute(:attachment_definitions, {})
+ inheritable_attribute[:attachment_definitions] = {}
end
else
self.attachment_definitions = self.attachment_definitions.dup
@@ -444,7 +444,7 @@ def attachment_definitions
if respond_to?(:class_attribute)
self.attachment_definitions
else
- read_inheritable_attribute(:attachment_definitions)
+ inheritable_attributes[:attachment_definitions]
end
end
end

No commit comments for this range

Something went wrong with that request. Please try again.