Browse Source

Applied rubocop cop 'Style/RegexpLiteral'.

Thorsten Eckel 9 years ago
parent
commit
0acd0b1861
1 changed files with 3 additions and 3 deletions
  1. 3 3
      lib/models.rb

+ 3 - 3
lib/models.rb

@@ -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)