Skip to content

Commit

Permalink
don't treat as subgroup name missing methods ending with =
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Oct 25, 2024
1 parent 1a84226 commit 3730ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_scaffold/data_structures/action_links.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def label(record)
end

def method_missing(name, *args, &block)
return super if name.match?(/[!?]$/)
return super if name.match?(/[=!?]$/)
return subgroup(name.to_sym, args.first, &block) if frozen?
class_eval <<-METHOD, __FILE__, __LINE__ + 1
def #{name}(label = nil) # rubocop:disable Style/CommentedKeyword
Expand Down

0 comments on commit 3730ce2

Please # to comment.