Module: ActsAsRailable::Routable::ClassMethods
- Defined in:
- lib/acts_as_railable/routable.rb
Overview
class methods
Instance Method Summary collapse
- #action_path(action = nil, record_or_hash_or_array = [], options = {}) ⇒ Object
- #action_url(action = nil, record_or_hash_or_array = [], options = {}) ⇒ Object
- #polymorphic_path(record_or_hash_or_array = [], options = {}) ⇒ Object
- #polymorphic_url(record_or_hash_or_array, options = {}) ⇒ Object
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=[], ={} ActsAsRailable::Routable.record_action_path record_or_hash_or_array, self, action, 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=[], ={} ActsAsRailable::Routable.record_action_url record_or_hash_or_array, self, action, 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=[], = {}) ActsAsRailable::Routable.polymorphic_path(record_or_hash_or_array, ) 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, = {}) ActsAsRailable::Routable.polymorphic_path(record_or_hash_or_array, ) end |