Class: Gemgento::Tag
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gemgento::Tag
- Defined in:
- app/models/gemgento/tag.rb
Overview
Instance Method Summary collapse
-
#base_popularity(store = nil) ⇒ Integer
Get the tag base popularity for a store.
Instance Method Details
#base_popularity(store = nil) ⇒ Integer
Get the tag base popularity for a store.
19 20 21 |
# File 'app/models/gemgento/tag.rb', line 19 def base_popularity(store = nil) self..find_by(store: (store || self.stores.first)).base_popularity end |