forked from fixin.me/fixin.me
Specify user modifiable ATTRIBUTES
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
class Unit < ApplicationRecord
|
||||
ATTRIBUTES = [:symbol, :name, :multiplier, :base_id]
|
||||
|
||||
belongs_to :user, optional: true
|
||||
belongs_to :base, optional: true, class_name: "Unit"
|
||||
has_many :subunits, class_name: "Unit", dependent: :restrict_with_error, inverse_of: :base
|
||||
|
||||
Reference in New Issue
Block a user