Skip to content

Commit

Permalink
Update lib/rubocop/cop/rails/action_order.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Koichi ITO <[email protected]>
  • Loading branch information
mollerhoj and koic authored Jan 12, 2022
1 parent dc51c36 commit 45e9497
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rubocop/cop/rails/action_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ class ActionOrder < Base
include VisibilityHelp
include DefNode

MSG = 'Controller actions should be sorted in the following order: %<expected_order>s. ' \
'Action `%<current>s` should appear before `%<previous>s`.'
MSG = 'Action `%<current>s` should appear before `%<previous>s`.'

def_node_search :action_declarations, '(def {%1} ...)'

Expand Down

0 comments on commit 45e9497

Please sign in to comment.