Class: Refinery::Flare::Template
- Inherits:
-
Object
- Object
- Refinery::Flare::Template
- Includes:
- HashInitializer
- Defined in:
- app/models/refinery/flare/template.rb
Instance Attribute Summary collapse
-
#refinery_options ⇒ Object
Returns the value of attribute refinery_options.
-
#repeatable ⇒ Object
Returns the value of attribute repeatable.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from HashInitializer
Instance Attribute Details
#refinery_options ⇒ Object
Returns the value of attribute refinery_options.
7 8 9 |
# File 'app/models/refinery/flare/template.rb', line 7 def @refinery_options end |
#repeatable ⇒ Object
Returns the value of attribute repeatable.
7 8 9 |
# File 'app/models/refinery/flare/template.rb', line 7 def repeatable @repeatable end |
Class Method Details
.all ⇒ Object
27 28 29 |
# File 'app/models/refinery/flare/template.rb', line 27 def all @@all end |
Instance Method Details
#refinery_options_exist? ⇒ Boolean
13 14 15 16 17 |
# File 'app/models/refinery/flare/template.rb', line 13 def unless .keys - Refinery::Page.attribute_names.map { |a| a.to_sym } == [] errors.add(:refinery_options, "Invalid refinery_options for #{self.class}") end end |