Class: Favorite

Inherits:
ApplicationRecord show all
Extended by:
ActsAsFavoritor::FavoriteScopes
Defined in:
app/models/favorite.rb

Constant Summary

Constants inherited from ApplicationRecord

ApplicationRecord::SAFE_NAME_LENGTH

Instance Method Summary collapse

Methods inherited from ApplicationRecord

find_param

Instance Method Details

#block! ⇒ Object



9
10
11
# File 'app/models/favorite.rb', line 9

def block!
  update!(blocked: true)
end