Class: Method
- Inherits:
-
Object
- Object
- Method
- Defined in:
- lib/reflexive/core_ext/reflexive_url.rb
Instance Method Summary collapse
Instance Method Details
#reflexive_url ⇒ Object
4 5 6 7 8 9 |
# File 'lib/reflexive/core_ext/reflexive_url.rb', line 4 def reflexive_url level = receiver.instance_of?(Class) ? :class : :instance klass = receiver.instance_of?(Class) ? receiver : receiver.class Reflexive::Application.default_url_prefix + Reflexive::RoutingHelpers.new_method_path(klass, level, name) end |