app/models/effective/effective_datatable/resource.rb in effective_datatables-4.3.9 vs app/models/effective/effective_datatable/resource.rb in effective_datatables-4.3.10
- old
+ new
@@ -6,10 +6,10 @@
def admin_namespace?
controller_namespace == 'admin'
end
def controller_namespace
- @attributes[:_n]
+ @attributes.key?(:namespace) ? @attributes[:namespace] : @attributes[:_n]
end
private
# This looks at all the columns and figures out the as: