Class: Spree::ThemesTemplate

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

Defined Under Namespace

Classes: CacheResolver

Constant Summary collapse

DEFAULT_LOCALE =
'en'
DEFAULT_PATH =
File.join('public', 'vinsol_spree_themes')
ASSETS_FILE_EXTENSIONS =
['.js', '.css']

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#created_by_adminObject

this attr attribute is used when templates are created from admin end.



9
10
11
# File 'app/models/spree/themes_template.rb', line 9

def created_by_admin
  @created_by_admin
end

Instance Method Details

#nameObject

DELEGATES ##



30
# File 'app/models/spree/themes_template.rb', line 30

delegate :name, to: :theme, prefix: true

#pathObject

VALIDATIONS ##



12
# File 'app/models/spree/themes_template.rb', line 12

validates :path, presence: true

#themeObject

ASSOCIATIONS ##



20
# File 'app/models/spree/themes_template.rb', line 20

belongs_to :theme