dovadi / emonWeb

Webapplication for energy visualisation for the emonBase platform
MIT License
5 stars 3 forks source link

DEPRECATION WARNING: update_attribute triggered by set_time_zone #8

Open dovadi opened 12 years ago

dovadi commented 12 years ago

There is no update_attribute in setting the time zone.

DEPRECATION WARNING: update_attribute is deprecated and will be removed in Rails 4. If you want to skip mass-assignment protection, callbacks, and modifying updated_at, use update_column. If you do want those things, use update_attributes. (called from set_time_zone at /Users/dovadi/rails/emonweb/app/controllers/application_controller.rb:11)

Same warning is also triggered in forward able.rb from within Ruby itself

DEPRECATION WARNING: update_attribute is deprecated and will be removed in Rails 4. If you want to skip mass-assignment protection, callbacks, and modifying updated_at, use update_column. If you do want those things, use update_attributes. (called from post at /Users/dovadi/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/forwardable.rb:201)