README.md in redde-0.3.17 vs README.md in redde-0.3.18
- old
+ new
@@ -183,13 +183,11 @@
```
class Calculator < ActiveRecord::Base
INDEX_COLUMNS = {
name: '',
- hop: "link_to \"Live (#{2 * 2})\", root_url"
+ hop: ->(item) { ActionController::Base.helpers.link_to("На сайт (#{2 * 2})", Rails.application.routes.url_helpers.root_path(id: item.id)) }
}
FORM_COLUMNS = %w(name)
end
```
-
-