lib/arcade/base.rb
def invariant_attributes
      result= attributes.except :rid, :in, :out, :values, :created_at,  :updated_at
      if  attributes.keys.include?(:values)
        result.merge values
      else
        result
      end
    end
## Attributes can be declared in the model file
##
## Those not covered there are stored in the `values` attribute
##
## invariant_attributes removes :rid, :in, :out, :created_at, :updated_at  and
#  includes :values-attributes to the list of attributes
Attributes can be declared in the model file
Those not covered there are stored in the `values` attribute


Attributes can be declared in the model file Those not covered there are stored in the ` values ` attribute
def invariant_attributes
      result= attributes.except :rid, :in, :out, :values, :created_at,  :updated_at
      if  attributes.keys.include?(:values)
        result.merge values
      else
        result
      end
    end
def invariant_attributes result = attributes . except :rid , :in , :out , :values , :created_at , :updated_at if attributes . keys . include? ( :values ) result . merge values else result end end
Attributes can be declared in the model file
Those not covered there are stored in the `values` attribute
Attributes can be declared in the model file Those not covered there are stored in the ` values ` attribute