Skip to content

Commit

Permalink
simpler code
Browse files Browse the repository at this point in the history
magec committed Sep 22, 2016
1 parent a8616ad commit 612a020
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rubocop/cop/migrations/remove_index.rb
Original file line number Diff line number Diff line change
@@ -12,9 +12,7 @@ module Migrations
class RemoveIndex < Cop
MSG = 'remove_index is disalowed'.freeze

def_node_matcher :remove_index_found, <<-PATTERN
(:send _ :remove_index ...)
PATTERN
def_node_matcher :remove_index_found, '(:send _ :remove_index ...)'

def on_send(node)
remove_index_found(node) do

0 comments on commit 612a020

Please sign in to comment.