Sha256: 9134370e68a3a6162243f03b9a5975e1bfa6298534e02b67605b8aa64d159877

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

# encoding: UTF-8

module Keynote
  # `Keynote::Controller` is mixed into `ActionController::Base` and
  # `ActionMailer::Base`, providing a `present` method (aliased to `k`) for
  # instantiating presenters.
  module Controller
    # Instantiate a presenter.
    # @see Keynote.present
    def present(*objects)
      Keynote.present(view_context, *objects)
    end
    alias k present
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keynote-0.1.2 lib/keynote/controller.rb
keynote-0.1.1 lib/keynote/controller.rb
keynote-0.1.0 lib/keynote/controller.rb