Module: Garnish::Controller::ClassMethods

Defined in:
lib/garnish/controller.rb

Instance Method Summary (collapse)

Instance Method Details

- (undefined) garnish(options = {}, &block)

Set the responder and respond_to formats

Examples:

class ApplicationController < ActionController::Base
  protect_from_forgery
  garnish
end

Returns:

  • (undefined)


15
16
17
18
# File 'lib/garnish/controller.rb', line 15

def garnish(options = {}, &block)
  self.responder = Garnish::Responder
  respond_to :html
end