app/models/effective/effective_datatable/resource.rb in effective_datatables-4.8.12 vs app/models/effective/effective_datatable/resource.rb in effective_datatables-4.8.13
- old
+ new
@@ -29,10 +29,10 @@
load_resource_belongs_tos!
load_resource_search!
end
def load_effective_resource!
- @effective_resource = if active_record_collection?
+ @effective_resource ||= if active_record_collection?
Effective::Resource.new(collection_class, namespace: controller_namespace)
end
end
def load_active_record_collection!