Class: Card::Format::CardActionView

Inherits:
ActionView::Base
  • Object
show all
Defined in:
lib/card/format/card_action_view.rb

Overview

minimalist subclass of ActionView

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.lookup_contextObject



10
11
12
# File 'lib/card/format/card_action_view.rb', line 10

def lookup_context
  @lookup_context ||= ::ActionView::LookupContext.new CardController.view_paths
end

.new(controller) ⇒ Object



6
7
8
# File 'lib/card/format/card_action_view.rb', line 6

def new controller
  super lookup_context, { _routes: nil }, controller
end

Instance Method Details

#compiled_method_containerObject



15
16
17
# File 'lib/card/format/card_action_view.rb', line 15

def compiled_method_container
  self.class
end