Module: Outpost::Model::Routing::ClassMethods
- Defined in:
- lib/outpost/model/routing.rb
Instance Attribute Summary collapse
-
#public_route_key ⇒ Object
Returns the value of attribute public_route_key.
Instance Method Summary collapse
-
#admin_index_path ⇒ Object
(also: #admin_create_path)
/outpost/blog_entries.
- #admin_index_url ⇒ Object (also: #admin_create_url)
-
#admin_new_path ⇒ Object
/outpost/blog_entries/new.
- #admin_new_url ⇒ Object
Instance Attribute Details
#public_route_key ⇒ Object
Returns the value of attribute public_route_key.
25 26 27 |
# File 'lib/outpost/model/routing.rb', line 25 def public_route_key @public_route_key end |
Instance Method Details
#admin_index_path ⇒ Object Also known as: admin_create_path
/outpost/blog_entries
51 52 53 |
# File 'lib/outpost/model/routing.rb', line 51 def admin_index_path collection_route("outpost_#{self.route_key}_path") end |
#admin_index_url ⇒ Object Also known as: admin_create_url
58 59 60 |
# File 'lib/outpost/model/routing.rb', line 58 def admin_index_url collection_route("outpost_#{self.route_key}_url") end |
#admin_new_path ⇒ Object
/outpost/blog_entries/new
40 41 42 |
# File 'lib/outpost/model/routing.rb', line 40 def admin_new_path collection_route("new_outpost_#{self.singular_route_key}_path") end |
#admin_new_url ⇒ Object
45 46 47 |
# File 'lib/outpost/model/routing.rb', line 45 def admin_new_url collection_route("new_outpost_#{self.singular_route_key}_url") end |