Method: Appfuel::Validation.load_schema
- Defined in:
- lib/appfuel/validation.rb
.load_schema(key) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/appfuel/validation.rb', line 35 def load_schema(key) feature = extract_feature_name(key) container = Appfuel.app_container key, _basename = build_validator_key(key) unless feature_initialized?(feature) initialize_feature(feature) end unless container.key?(key) fail "Could not load validator key #{key}" end container[key] end |