README.md in effective_logging-1.10.2 vs README.md in effective_logging-1.10.3
- old
+ new
@@ -244,12 +244,12 @@
```ruby
# Format the value of this attribute. Return nil to use the default to_s
def log_changes_formatted_value(attribute, value)
if ['cost'].include?(attribute)
- ActionController::Base.helpers.number_to_currency(value)
+ ApplicationController.helpers.number_to_currency(value)
elsif ['percentage'].include?(attribute)
- ActionController::Base.helpers.number_to_percentage(value)
+ ApplicationController.helpers.number_to_percentage(value)
end
end
```
### Logging From JavaScript