naive implementation of post_count on categories

This commit is contained in:
Sam
2013-10-17 13:23:38 +11:00
parent 9ad01a1afb
commit 7bf96ee690
4 changed files with 39 additions and 6 deletions

View File

@ -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|