Module: Panmind::Zendesk::Routing

Defined in:
lib/panmind/zendesk.rb

Instance Method Summary collapse

Instance Method Details

#zendesk(base, options = {}) ⇒ Object



155
156
157
158
159
160
161
162
# File 'lib/panmind/zendesk.rb', line 155

def zendesk(base, options = {})
  return unless Zendesk.enabled?

  scope base.to_s, :controller => options[:controller] do
    get '',     :action => :zendesk_login,  :as => base.to_sym
    get 'exit', :action => :zendesk_logout, :as => nil
  end
end