Class: Comable::Store
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Comable::Store
- Defined in:
- app/models/comable/store.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.default_name ⇒ Object
13 14 15 |
# File 'app/models/comable/store.rb', line 13 def default_name 'Comable store' end |
.instance ⇒ Object
9 10 11 |
# File 'app/models/comable/store.rb', line 9 def instance first || new(name: default_name) end |
Instance Method Details
#email_activate? ⇒ Boolean
18 19 20 |
# File 'app/models/comable/store.rb', line 18 def email_activate? email_activate_flag && email_sender.present? end |