Module: Pulse::Routes

Defined in:
lib/pulse/routes.rb

Instance Method Summary collapse

Instance Method Details

#pulse(path = nil) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/pulse/routes.rb', line 3

def pulse(path = nil)
  path ||= "/pulse"
  if Rails::VERSION::MAJOR == 2
    connect path, :controller => 'pulse', :action => 'pulse'
  else
    get path => 'pulse#pulse'
  end
end