aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/generic_attribute_control
AgeCommit message (Collapse)Author
2018-03-15Refs #6139 Change Min max values validation concern to allowed float valuescedricnjanga
2018-01-04Refs ##5461 Add validation on some Compliance Controls to avoid negative ↵cedricnjanga
values on dynamic attributes
2017-12-21Remove `hstore_accessor` usageTeddy Wing
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
2017-10-17Compliance Control set min level of criticityXinhui
Refs #4730
2017-10-16Uncomment presence validation on generic attribute control Refs #4728Luc Donnet
2017-10-16Refs: #4720@1.3h;Robert
Validation implemented for min_max_values with correct I18n'd error messages Applied to: VehicleJourneyControl::Speed & GenericAttributeControl::MinMax
2017-10-14Fix translations for compliance_control type translation, compliance_control ↵Luc Donnet
validation, compliance_control module
2017-10-04Rename app/models/route_control/speed.rb -> ↵Luc Donnet
app/models/vehicle_journey_control/speed.rb and fix variables name in compliance control subclasses Refs #4690
2017-10-03Fix dynamic_attributes in compliance_control STI Refs #2198Luc Donnet
2017-10-02Fixes: #4627@0.55h;Robert
Class Methods replace Class Attributes
2017-10-02Refs: #4627@0.15h;Robert
Put old behavior under tests, thusly also showing the motivation of this ticket.
2017-09-27Refs #4616 put generic_attribute compliance control inside a foldercedricnjanga