Class: Compass::Search::ViewContext
- Inherits:
-
ActionView::Base
- Object
- ActionView::Base
- Compass::Search::ViewContext
- Defined in:
- lib/compass/search/view_context.rb
Class Method Summary collapse
Instance Method Summary collapse
- #compiled_method_container ⇒ Object
-
#initialize(view_paths = []) ⇒ ViewContext
constructor
A new instance of ViewContext.
- #view_paths ⇒ Object
Constructor Details
#initialize(view_paths = []) ⇒ ViewContext
Returns a new instance of ViewContext.
4 5 6 7 |
# File 'lib/compass/search/view_context.rb', line 4 def initialize(view_paths = []) all_view_paths = Compass.config.search.view_paths + Array(view_paths) super ActionView::LookupContext.new(all_view_paths), {}, nil end |
Class Method Details
.compiled_method_container ⇒ Object
17 18 19 |
# File 'lib/compass/search/view_context.rb', line 17 def self.compiled_method_container self end |
Instance Method Details
#compiled_method_container ⇒ Object
13 14 15 |
# File 'lib/compass/search/view_context.rb', line 13 def compiled_method_container self.class.compiled_method_container end |
#view_paths ⇒ Object
9 10 11 |
# File 'lib/compass/search/view_context.rb', line 9 def view_paths Compass.config.search.view_paths end |