gallery versioning added.. and also the models changed for gallery now more R4 compatible. urls for gallery working fine now..

This commit is contained in:
harrybomrah authored and saurabhbhatia committed 2013-11-19 09:32:08 +08:00
1 parent 16b695200a
commit 91d5ab6352
13 files changed
+55 -54

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ class DefaultWidgetController< OrbitWidgetController
end
def get_filter_data
model = eval(@default_widget["query"])
model = @default_widget["query"].classify.constantize
if params[:filter_category_id].is_a? Array
data = model.where(:category_id.in => params[:filter_category_id])
elsif params[:filter_category_id].is_a? String