Module: Outpost::Model::Routing::ClassMethods

Defined in:
lib/outpost/model/routing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#public_route_keyObject

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_pathObject 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_urlObject 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_pathObject

/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_urlObject



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