Applied rubocop cop 'Style/RegexpLiteral'.

This commit is contained in:
Thorsten Eckel 2015-07-03 18:56:27 +02:00
parent 7a02236f63
commit 0acd0b1861

View file

@ -27,9 +27,9 @@ returns
dir = "#{Rails.root}/app/models/"
Dir.glob( "#{dir}**/*.rb" ) do |entry|
next if entry =~ /application_model/i
next if entry =~ /channel\//i
next if entry =~ /observer\//i
next if entry =~ /store\/provider\//i
next if entry =~ %r{channel/}i
next if entry =~ %r{observer/}i
next if entry =~ %r{store/provider/}i
entry.gsub!(dir, '')
entry = entry.to_classname
model_class = load_adapter(entry)