moved stylesheets and javascripts to assets
This commit is contained in:
@@ -40,7 +40,7 @@ class Post < ActiveRecord::Base
|
||||
scope :hidden_from_moderation, lambda {where(["id IN (SELECT pd.post_id FROM post_disapprovals pd WHERE pd.user_id = ?)", CurrentUser.id])}
|
||||
scope :before_id, lambda {|id| id.present? ? where(["posts.id < ?", id]) : where("TRUE")}
|
||||
scope :tag_match, lambda {|query| Post.tag_match_helper(query)}
|
||||
search_method :tag_match
|
||||
search_methods :tag_match
|
||||
|
||||
module FileMethods
|
||||
def delete_files
|
||||
|
||||
@@ -3,7 +3,7 @@ class Tag < ActiveRecord::Base
|
||||
after_save :update_category_cache
|
||||
has_one :wiki_page, :foreign_key => "name", :primary_key => "title"
|
||||
scope :name_matches, lambda {|name| where(["name LIKE ? ESCAPE E'\\\\'", name.to_escaped_for_sql_like])}
|
||||
search_method :name_matches
|
||||
search_methods :name_matches
|
||||
|
||||
class CategoryMapping
|
||||
Danbooru.config.reverse_tag_category_mapping.each do |value, category|
|
||||
|
||||
Reference in New Issue
Block a user