diff --git a/app/controllers/orbit_backend_controller.rb b/app/controllers/orbit_backend_controller.rb index 9648f327..339f7ede 100644 --- a/app/controllers/orbit_backend_controller.rb +++ b/app/controllers/orbit_backend_controller.rb @@ -74,7 +74,7 @@ class OrbitBackendController< ApplicationController when 'categories' a = Array.new objects.each do |object| - a << object if value.include?(object.send("#{object.class.to_s.underscore}_category").id.to_s) + a << object if (value.include?(object.send("#{object.class.to_s.underscore}_category").id.to_s) rescue nil) end objects = a.uniq when 'tags' @@ -99,9 +99,9 @@ class OrbitBackendController< ApplicationController if s case s.class.to_s when "String" - s.downcase + s.downcase rescue '' when "I18nVariable" - s[I18n.locale].downcase + s[I18n.locale].downcase rescue '' else nil end diff --git a/app/views/kaminari/_gap.html.erb b/app/views/kaminari/_gap.html.erb index 8807aafe..c680799d 100644 --- a/app/views/kaminari/_gap.html.erb +++ b/app/views/kaminari/_gap.html.erb @@ -5,4 +5,4 @@ per_page: number of items to fetch per page remote: data-remote -%> -