Sha256: 664a34cce21efd790cb8bf43b7cd1bc9f5d057201413605e684302159f7419f7
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true # == Schema Information # # Table name: features # # id :integer not null, primary key # price :float default(0.0) # sort_order :integer default(1) # created_at :datetime # updated_at :datetime # title_translations :hstore default({}) # module Features class ExtraFeature < Features::Base validates :extra_cost, presence: true default_scope -> { where(feature_type_id: Features::FeatureType.extra.id) } after_initialize :set_feature_type protected def set_feature_type feature_type_id = Features::FeatureType.extra.id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/models/features/extra_feature.rb |