Class: Comable::Store
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Comable::Store
- Includes:
- Liquidable
- Defined in:
- app/models/comable/store.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.default_name ⇒ Object
19 20 21 |
# File 'app/models/comable/store.rb', line 19 def default_name Comable.t('default_store_name') end |
.instance ⇒ Object
15 16 17 |
# File 'app/models/comable/store.rb', line 15 def instance first || new(name: default_name) end |
Instance Method Details
#can_send_mail? ⇒ Boolean
24 25 26 |
# File 'app/models/comable/store.rb', line 24 def can_send_mail? email.present? end |