Module: Keynote::Controller

Defined in:
lib/keynote/controller.rb

Overview

Keynote::Controller is mixed into ActionController::Base and ActionMailer::Base, providing a present method (aliased to k) for instantiating presenters.

Instance Method Summary collapse

Instance Method Details

#present(*objects, &blk) ⇒ Object Also known as: k

Instantiate a presenter.

See Also:



10
11
12
# File 'lib/keynote/controller.rb', line 10

def present(*objects, &blk)
  Keynote.present(view_context, *objects, &blk)
end