Archived
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:
1 parent
16b695200a
commit
91d5ab6352
13 files changed
+55
-54
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user