Class: Spree::ThemesTemplate
- Inherits:
-
Base
- Object
- Base
- Spree::ThemesTemplate
- 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
-
#created_by_admin ⇒ Object
this attr attribute is used when templates are created from admin end.
Instance Method Summary collapse
-
#name ⇒ Object
DELEGATES ##.
-
#path ⇒ Object
VALIDATIONS ##.
-
#theme ⇒ Object
ASSOCIATIONS ##.
Instance Attribute Details
#created_by_admin ⇒ Object
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
#name ⇒ Object
DELEGATES ##
30 |
# File 'app/models/spree/themes_template.rb', line 30 delegate :name, to: :theme, prefix: true |
#path ⇒ Object
VALIDATIONS ##
12 |
# File 'app/models/spree/themes_template.rb', line 12 validates :path, presence: true |
#theme ⇒ Object
ASSOCIATIONS ##
20 |
# File 'app/models/spree/themes_template.rb', line 20 belongs_to :theme |