Class: Spree::HomePageFeature
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spree::HomePageFeature
- Defined in:
- app/models/spree/home_page_feature.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.styles ⇒ Object
13 14 15 |
# File 'app/models/spree/home_page_feature.rb', line 13 def styles @styles ||= [] end |
.styles=(styles) ⇒ Object
17 18 19 |
# File 'app/models/spree/home_page_feature.rb', line 17 def styles=(styles) @styles = styles end |
.styles_dropdown ⇒ Object
21 22 23 |
# File 'app/models/spree/home_page_feature.rb', line 21 def styles_dropdown styles.map {|s| [s.humanize, s]} end |
Instance Method Details
#display ⇒ Object
8 9 10 |
# File 'app/models/spree/home_page_feature.rb', line 8 def display self.style || "" end |