Class: Solargraph::Arc::Devise

Inherits:
Object
  • Object
show all
Defined in:
lib/solargraph/arc/devise.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDevise

Returns a new instance of Devise.



8
9
10
# File 'lib/solargraph/arc/devise.rb', line 8

def initialize
  @seen_devise_closures = []
end

Class Method Details

.instanceObject



4
5
6
# File 'lib/solargraph/arc/devise.rb', line 4

def self.instance
  @instance ||= self.new
end

Instance Method Details

#process(source_map, ns) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/solargraph/arc/devise.rb', line 12

def process(source_map, ns)
  if source_map.filename.include?("app/models")
    process_model(source_map, ns)
  elsif source_map.filename.end_with?("app/controllers/application_controller.rb")
    process_controller(source_map, ns)
  else
    []
  end
end