lib/chusaku.rb in chusaku-1.0.1 vs lib/chusaku.rb in chusaku-1.1.0

- old
+ new

@@ -18,10 +18,10 @@ def call(flags = {}) @flags = flags @routes = Chusaku::Routes.call @changes = [] @changed_files = [] - controllers_pattern = "app/controllers/**/*_controller.rb" + controllers_pattern = @flags[:controllers_pattern] || "app/controllers/**/*_controller.rb" Dir.glob(Rails.root.join(controllers_pattern)).each do |path| controller = %r{controllers/(.*)_controller\.rb}.match(path)[1] actions = @routes[controller] next if actions.nil?