Class: Breeze::Style
- Inherits:
-
SharedBase
- Object
- ActiveYaml
- SharedBase
- Breeze::Style
- Defined in:
- app/models/breeze/style.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ActiveYaml
Instance Method Summary collapse
Methods inherited from SharedBase
Methods inherited from ActiveYaml
all, append, define_access, define_association, delete, fields, find, find_all, find_by, first, full_path, #id, #id=, #initialize, load_file, #persisted?, primary_key, reload, save_all, set_root_path, the_meta_class
Constructor Details
This class inherits a constructor from Breeze::ActiveYaml
Instance Method Details
#options_definitions ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/models/breeze/style.rb', line 6 def option_defs = [] .each do |name| option = OptionDefinition.find_by_name(name) raise "no option for #{name}:#{name.class}" if option.blank? option_defs << option end if option_defs end |