mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:11:20 +08:00
naive implementation of post_count on categories
This commit is contained in:
@ -77,7 +77,7 @@ class SqlBuilder
|
||||
16 => :value_to_boolean
|
||||
}
|
||||
|
||||
def map_exec(klass, args = {})
|
||||
def map_exec(klass = OpenStruct, args = {})
|
||||
results = exec(args)
|
||||
|
||||
setters = results.fields.each_with_index.map do |f, index|
|
||||
|
Reference in New Issue
Block a user