Skip to content

Commit

Permalink
Fix attacher to support rails 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
saenom committed Dec 18, 2024
1 parent c4ac577 commit 67948af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/refile/attacher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def delete!
end

def remove?
remove and remove != "" and remove !~ /\A0|false$\z/
remove and remove.to_s != "" and remove.to_s !~ /\A0|false$\z/
end

def present?
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.0"
VERSION = "0.7.1"
end

0 comments on commit 67948af

Please sign in to comment.