Sha256: 0ccc79f5ac79fcb64bc487cf28ab5d46908d0f1e6385d5e3acd88f8f81771a89
Contents?: true
Size: 456 Bytes
Versions: 4
Compression:
Stored size: 456 Bytes
Contents
module Comable class OptionValue < ActiveRecord::Base include Comable::Ransackable belongs_to :option_type, class_name: Comable::OptionType.name has_and_belongs_to_many :variants, class_name: Comable::Variant.name, join_table: :comable_variants_option_values accepts_nested_attributes_for :option_type validates :name, presence: true, length: { maximum: 255 } ransack_options ransackable_attributes: { only: :name } end end
Version data entries
4 entries across 4 versions & 1 rubygems