Class: Iord::GenericResolver

Inherits:
ActionView::FileSystemResolver
  • Object
show all
Defined in:
lib/iord/resolver.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, prefix) ⇒ GenericResolver

Returns a new instance of GenericResolver.



13
14
15
16
# File 'lib/iord/resolver.rb', line 13

def initialize(path, prefix)
  super File.expand_path("#{Rails.root}/app/views/#{path}")
  @prefix = prefix
end

Instance Method Details

#find_templates(name, prefix, partial, details, outside_app_allowed = false) ⇒ Object



18
19
20
# File 'lib/iord/resolver.rb', line 18

def find_templates(name, prefix, partial, details, outside_app_allowed = false)
  super(name, @prefix, partial, details)
end