| Age | Commit message (Collapse) | Author |
|
|
|
values on dynamic attributes
|
|
The places we were using `hstore_accessor` have now been converted to
Postgres JSON fields. Thus we no longer need `hstore_accessor` in order
to add accessors for the fields.
Instead we can use Rails' built-in support for Postgres JSON fields and
create accessors for our JSON hash keys with `store_accessor`. We get
rid of the data types because `store_accessor` doesn't work like that
and JSON already types our values with primitive data types.
Finally, add some extra validation tests now that the vaildation for our
JSON fields should work.
Refs #5316
|
|
Refs #4730
|
|
|
|
Validation implemented for min_max_values with correct I18n'd error messages
Applied to: VehicleJourneyControl::Speed & GenericAttributeControl::MinMax
|
|
validation, compliance_control module
|
|
app/models/vehicle_journey_control/speed.rb and fix variables name in compliance control subclasses Refs #4690
|
|
|
|
Class Methods replace Class Attributes
|
|
Put old behavior under tests, thusly also showing the motivation of this ticket.
|
|
|