Skip to content

Commit

Permalink
fix rubocop offense
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Oct 23, 2024
2 parents 3c5f4a1 + 05f7c2b commit 1628102
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 @@ -130,7 +130,7 @@ def subgroup(name, label = nil)
end

if group.nil?
raise RuntimeError, "Can't add new subgroup '#{name}', links are frozen" if frozen?
raise "Can't add new subgroup '#{name}', links are frozen" if frozen?
group = ActiveScaffold::DataStructures::ActionLinks.new(name)
group.label = label || name
group.default_type = self.name == :root ? (name.to_sym if %w[member collection].include?(name.to_s)) : default_type
Expand Down

0 comments on commit 1628102

Please sign in to comment.