Method: FlexScaffold::Validations#load_schema_info
- Defined in:
- lib/validations.rb
#load_schema_info(class_name = @record) ⇒ Object
Adds the schema information into the validation of the attributes. This information includes the type, limit, and default values.
22 23 24 |
# File 'lib/validations.rb', line 22 def load_schema_info(class_name=@record) @attrs.merge(get_schema_info(class_name)) end |