Skip to content

Commit

Permalink
fix rubocop offense
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Nov 21, 2024
1 parent f2ffaed commit d65d64c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/active_scaffold.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ def self.js_framework=(framework)
warning = 'js_framework is deprecated as prototype support will be removed in 4.0'
case framework
when :jquery then
if defined? Jquery
warning += ', it can be removed as it defaults to :jquery'
else
warning += ", it's still needed in this version, as you are not using jquery-rails gem"
end
warning +=
if defined? Jquery
', it can be removed as it defaults to :jquery'
else
", it's still needed in this version, as you are not using jquery-rails gem"
end
when :prototype then warning += ', convert your app to jQuery, and remove this call'
end
ActiveSupport::Deprecation.warn warning
Expand Down

0 comments on commit d65d64c

Please sign in to comment.