Class: Spree::HomePageFeature

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/spree/home_page_feature.rb

Class Method Summary collapse

Class Method Details

.stylesObject



34
35
36
# File 'app/models/spree/home_page_feature.rb', line 34

def styles
  @styles ||= []
end

.styles=(styles) ⇒ Object



38
39
40
# File 'app/models/spree/home_page_feature.rb', line 38

def styles=(styles)
  @styles = styles
end

.styles_dropdownObject



42
43
44
# File 'app/models/spree/home_page_feature.rb', line 42

def styles_dropdown
  styles.map { |s| [ s.humanize, s ] }
end