1
0

Renamed: column -> exposure

Moved toggle_column_options to body_trackers helper
This commit is contained in:
cryptogopher
2020-04-25 15:42:22 +02:00
parent 5e3322fe96
commit a4781b4fcd
18 changed files with 57 additions and 55 deletions

View File

@@ -4,7 +4,7 @@ class MeasurementRoutine < ActiveRecord::Base
foreign_key: 'routine_id', dependent: :restrict_with_error,
extend: BodyTracking::ItemsWithQuantities
has_many :readout_exposures, as: :view, dependent: :destroy,
class_name: 'Exposure', extend: BodyTracking::TogglableColumns
class_name: 'Exposure', extend: BodyTracking::TogglableExposures
has_many :quantities, -> { order "lft" }, through: :readout_exposures
validates :name, presence: true, uniqueness: {scope: :project_id}