Module: ActsAsRailable::Routable::ClassMethods

Defined in:
lib/acts_as_railable/routable.rb

Overview

class methods

Instance Method Summary collapse

Instance Method Details

#action_path(action = nil, record_or_hash_or_array = [], options = {}) ⇒ Object



44
45
46
# File 'lib/acts_as_railable/routable.rb', line 44

def action_path action=nil, record_or_hash_or_array=[], options={}
  ActsAsRailable::Routable.record_action_path record_or_hash_or_array, self, action, options
end

#action_url(action = nil, record_or_hash_or_array = [], options = {}) ⇒ Object



48
49
50
# File 'lib/acts_as_railable/routable.rb', line 48

def action_url action=nil, record_or_hash_or_array=[], options={}
  ActsAsRailable::Routable.record_action_url record_or_hash_or_array, self, action, options
end

#polymorphic_path(record_or_hash_or_array = [], options = {}) ⇒ Object



36
37
38
# File 'lib/acts_as_railable/routable.rb', line 36

def polymorphic_path(record_or_hash_or_array=[], options = {})
  ActsAsRailable::Routable.polymorphic_path(record_or_hash_or_array, options)
end

#polymorphic_url(record_or_hash_or_array, options = {}) ⇒ Object



40
41
42
# File 'lib/acts_as_railable/routable.rb', line 40

def polymorphic_url(record_or_hash_or_array, options = {})
  ActsAsRailable::Routable.polymorphic_path(record_or_hash_or_array, options)
end