Sha256: 422a12e897eb1456b0b835d174b2ecae8da9ceac16dca7a5548fad49630233e6

Contents?: true

Size: 782 Bytes

Versions: 20

Compression:

Stored size: 782 Bytes

Contents

process specifiers (to add validations for required, etc.)(detect index modifications) decide what to do with multiple-column indices

add extensible specifiers:
  ModalFields.specify do
    required do |model, column|
       model.validates_presence_of column.name
    end
    unique do |model, column|
      model.validates_uniqueness_of name, :allow_nil => !column.specifiers.include?(:required)
    end
  end

rename hook to... filter? process? declared?  transformation?

complete field declaration validation

helper methods for field declaration: (can be used instead of the type and dispense with the need
of extra attributes)
  status enum_field(:draft, :approved, :published), :required
instead of
  status :enum_field, :required, :values=>[:draft, :approved, :published]

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
modalfields-1.5.7 TODO
modalfields-1.5.6 TODO
modalfields-1.5.5 TODO
modalfields-1.5.4 TODO
modalfields-1.5.3 TODO
modalfields-1.5.2 TODO
modalfields-1.5.1 TODO
modalfields-1.5.0 TODO
modalfields-1.4.7 TODO
modalfields-1.4.6 TODO
modalfields-1.4.5 TODO
modalfields-1.4.4 TODO
modalfields-1.4.3 TODO
modalfields-1.4.2 TODO
modalfields-1.4.1 TODO
modalfields-1.4.0 TODO
modalfields-1.3.0 TODO
modalfields-1.2.2 TODO
modalfields-1.2.1 TODO
modalfields-1.2.0 TODO