Module: AlbumExtender
- Included in:
- AlbumOrigin
- Defined in:
- lib/extenders/album_extender.rb
Instance Method Summary collapse
Instance Method Details
#decr_user_albums_count(uid) ⇒ Object
6 7 8 |
# File 'lib/extenders/album_extender.rb', line 6 def decr_user_albums_count(uid) COUNTER_SERVICE.decrBy('user.albums.count', uid, 1) end |
#next_id ⇒ Object
2 3 4 |
# File 'lib/extenders/album_extender.rb', line 2 def next_id ID_SERVICE.getNextId("ting.tb_album") end |