Skip to content

Commit

Permalink
Merge pull request #53 from Kriechi/add-delete-readme
Browse files Browse the repository at this point in the history
add readme about deleting settings
  • Loading branch information
ledermann committed Apr 25, 2014
2 parents 98e4841 + 350f008 commit bba8a5d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bba8a5d

Please sign in to comment.