diff --git a/README.md b/README.md index f8383681..f2538d27 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,15 @@ user.settings(:calendar).scope # => 'all' ``` +### Delete settings + +```ruby +user = User.find(1) +user.settings(:dashboard).update_attributes! :theme => nil + +user.settings(:dashboard).view = nil +user.settings(:dashboard).save! +``` ### Using scopes