Class: Datatable::UrlHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/datatablesnet/datatable.rb

Instance Method Summary collapse

Instance Method Details

#url_for(options = {}) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/datatablesnet/datatable.rb', line 11

def url_for(options = {})
  options ||= {}
  url = case options
  when String
    super
  when Hash
    super
  when :back
    super
  else
    polymorphic_path(options)
  end

  url
end