Skip to content

Commit

Permalink
Fix attachment_field method
Browse files Browse the repository at this point in the history
  • Loading branch information
saenom committed Dec 18, 2024
1 parent 67948af commit 8a3f0ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/refile/rails/attachment_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ module FormBuilder
# @see AttachmentHelper#attachment_field
def attachment_field(method, options = {})
self.multipart = true
@template.attachment_field(@object_name, method, objectify_options(options))
@template.attachment_field(@object_name, method, **objectify_options(options))
end

# @see AttachmentHelper#attachment_cache_field
def attachment_cache_field(method, options = {})
self.multipart = true
@template.attachment_cache_field(@object_name, method, objectify_options(options))
@template.attachment_cache_field(@object_name, method, **objectify_options(options))
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/refile/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Refile
VERSION = "0.7.1"
VERSION = "0.7.2"
end

0 comments on commit 8a3f0ad

Please sign in to comment.