This commit is contained in:
r888888888
2014-04-14 14:32:01 -07:00
parent 7a61048d69
commit fad0ab7c93
105 changed files with 610 additions and 485 deletions

View File

@@ -106,7 +106,7 @@ class PostQueryBuilder
q = Tag.parse_query(query_string)
end
relation = Post.scoped
relation = Post.where("true")
if q[:tag_count].to_i > Danbooru.config.tag_query_limit
raise ::Post::SearchError.new("You cannot search for more than #{Danbooru.config.tag_query_limit} tags at a time")

View File

@@ -1,5 +1,5 @@
module PostSets
class Favorite < Base
class Favorite < PostSets::Base
attr_reader :user, :page, :favorites, :params
def initialize(user_id, page = 1, params = {})

View File

@@ -1,5 +1,5 @@
module PostSets
class Note < Post
class Note < PostSets::Post
attr_reader :params
def initialize(params)

View File

@@ -1,5 +1,5 @@
module PostSets
class Pool < Base
class Pool < PostSets::Base
module ActiveRecordExtension
attr_accessor :total_pages, :current_page
end

View File

@@ -1,5 +1,5 @@
module PostSets
class Popular < Base
class Popular < PostSets::Base
attr_reader :date, :scale
def initialize(date, scale)

View File

@@ -1,5 +1,5 @@
module PostSets
class Post < Base
class Post < PostSets::Base
attr_reader :tag_array, :page, :per_page, :raw
def initialize(tags, page = 1, per_page = nil, raw = false)