Method: ActsAsTable::Lense#values
- Defined in:
- app/models/acts_as_table/lense.rb
#values ⇒ ActiveRecord::Relation<ActsAsTable::Value>
Returns the ActsAsTable values that have been provided by this ActsAsTable attribute accessor.
41 42 43 44 45 46 47 48 |
# File 'app/models/acts_as_table/lense.rb', line 41 has_many :values, **{ as: :value_provider, class_name: 'ActsAsTable::Value', dependent: :restrict_with_exception, foreign_key: 'value_provider_id', foreign_type: 'value_provider_type', inverse_of: :value_provider, } |