UPGRADE.md in unread-0.9.1 vs UPGRADE.md in unread-0.10.0

- old
+ new

@@ -9,11 +9,11 @@ The gem accepts any type of classes as reader and it's not limited to `User` class anymore. So you can do stuff like: ```ruby Customer.have_not_read(message1) -message1.mark_as_read! :for => Customer.find(1) +message1.mark_as_read! for: Customer.find(1) ``` If you are upgrading from v0.6.3 or older, you need to do the following after upgrading: ```shell @@ -30,20 +30,20 @@ The class method `acts_as_reader` doesn't take the option `:scope` anymore. If you have used it, please change this ... ```ruby class User < ActiveRecord::Base - acts_as_reader :scope => -> { where(:is_admin => true) } + acts_as_reader scope: -> { where(is_admin: true) } end ``` ... to this ```ruby class User < ActiveRecord::Base acts_as_reader def self.reader_scope - where(:is_admin => true) + where(is_admin: true) end end ```