README.md in effective_logging-1.10.17 vs README.md in effective_logging-1.10.18
- old
+ new
@@ -319,11 +319,11 @@
If you don't want to use the builtin Admin screen, and would rather render the effective_datatable of logs elsewhere
In your controller:
```ruby
-@datatable = Effective::Datatables::Logs.new()
+@datatable = EffectiveLogsDatatable.new(self)
```
And then in your view:
```ruby
@@ -338,10 +338,10 @@
In your controller:
```ruby
@user = User.find(params[:id])
-@datatable = Effective::Datatables::Logs.new(:user_id => @user.id)
+@datatable = EffectiveLogsDatatable.new(self, user_id: @user.id)
```
## License