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
1 parent b4de4dd commit 05f7c2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/active_scaffold/data_structures/action_links.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def subgroup(name, label = nil)
end

if group.nil?
group = ActiveScaffold::DataStructures::ActionLinks.new
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 Expand Up @@ -172,7 +171,7 @@ def respond_to_missing?(name, *)
attr_accessor :css_class

def name=(value)
ActiveSupport::Deprecation.warn "Changing name is deprecated, use css_class to change the class html attribute"
ActiveSupport::Deprecation.warn 'Changing name is deprecated, use css_class to change the class html attribute'
self.css_class = value
end

Expand Down

0 comments on commit 05f7c2b

Please sign in to comment.