Sha256: 89595b6571217f3b9dae9c0e63920c85f90198f5ea79271a92914336b1b3c37c

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

# encoding: UTF-8

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
keynote-0.0.1 lib/keynote/controller.rb