implements #46: The '/wiki_pages' and '/forum_topics' resources are inconvenient to navigate to
This commit is contained in:
@@ -13,6 +13,7 @@ class Upload < ActiveRecord::Base
|
|||||||
after_destroy :delete_temp_file
|
after_destroy :delete_temp_file
|
||||||
validate :uploader_is_not_limited
|
validate :uploader_is_not_limited
|
||||||
scope :uploaded_by, lambda {|user_id| where(["uploader_id = ?", user_id])}
|
scope :uploaded_by, lambda {|user_id| where(["uploader_id = ?", user_id])}
|
||||||
|
scope :pending, where(:status => "pending")
|
||||||
|
|
||||||
module ValidationMethods
|
module ValidationMethods
|
||||||
def uploader_is_not_limited
|
def uploader_is_not_limited
|
||||||
|
|||||||
@@ -144,6 +144,11 @@ Danbooru::Application.routes.draw do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# aliases
|
||||||
|
resources :wpages, :controller => "wiki_pages"
|
||||||
|
resources :ftopics, :controller => "forum_topics"
|
||||||
|
resources :fposts, :controller => "forum_posts"
|
||||||
|
|
||||||
match "/site_map" => "static#site_map", :as => "site_map"
|
match "/site_map" => "static#site_map", :as => "site_map"
|
||||||
match "/terms_of_service" => "static#terms_of_service", :as => "terms_of_service"
|
match "/terms_of_service" => "static#terms_of_service", :as => "terms_of_service"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user