Class: Dust::Builder::SiteWide
- Inherits:
-
Object
- Object
- Dust::Builder::SiteWide
- Includes:
- ActiveModel::Validations
- Defined in:
- app/models/dust/builder/site_wide.rb
Instance Attribute Summary collapse
-
#variables ⇒ Object
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SiteWide
constructor
A new instance of SiteWide.
- #update ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ SiteWide
Returns a new instance of SiteWide.
9 10 11 12 |
# File 'app/models/dust/builder/site_wide.rb', line 9 def initialize(={}) @options = [:options] @variables = [] end |
Instance Attribute Details
#variables ⇒ Object
Returns the value of attribute variables.
7 8 9 |
# File 'app/models/dust/builder/site_wide.rb', line 7 def variables @variables end |
Instance Method Details
#update ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'app/models/dust/builder/site_wide.rb', line 14 def update build_variables if self.errors.blank? update_variables else false end end |