Class: Breeze::Style

Inherits:
SharedBase show all
Defined in:
app/models/breeze/style.rb

Direct Known Subclasses

CardStyle, PageStyle, SectionStyle

Instance Attribute Summary

Attributes inherited from ActiveYaml

#data

Instance Method Summary collapse

Methods inherited from SharedBase

load_file

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_definitionsObject



6
7
8
9
10
11
12
13
14
# File 'app/models/breeze/style.rb', line 6

def options_definitions
  option_defs = []
  options.each do |name|
    option = OptionDefinition.find_by_name(name)
    raise "no option for #{name}:#{name.class}" if option.blank?
    option_defs << option
  end if options
  option_defs
end