class FixtureLoaders::PropertyDefinitionLoader
Public Instance Methods
load()
click to toggle source
# File lib/mingle_macro_development_toolkit/loaders/fixture_loaders/property_definition_loader.rb, line 8 def load record = load_fixtures_for('property_definitions').find { |pd| match?(pd)} property_definition = Mingle::PropertyDefinition.new(OpenStruct.new(record)) property_definition.card_types_property_definitions_loader = CardTypesPropertyDefinitionsLoader.new('property_definition_id' => record['id']) property_definition.values_loader = PropertyValuesLoader.new('property_definition_id' => record['id']) property_definition end
property_definition()
click to toggle source
# File lib/mingle_macro_development_toolkit/loaders/fixture_loaders/property_definition_loader.rb, line 4 def property_definition @property_definition ||= load end