Skip to content

Commit

Permalink
get all controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
faraaz-deepsource committed Jul 12, 2023
1 parent 8db87d5 commit 2ec8738
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/trains/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Trains
VERSION = '0.0.15'.freeze
VERSION = '0.0.16'.freeze
end
2 changes: 1 addition & 1 deletion lib/trains/visitor/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def parse_body(body)
end

def controller?(parent_class)
%w[ActionController::Base ApplicationController].include? parent_class
parent_class.include? 'Controller'
end

def parse_method(node)
Expand Down

0 comments on commit 2ec8738

Please sign in to comment.