Sha256: 2daa382696ad60f7b3880fdfd2cd4e8b171d1619211909bdc6abfd6d904d0c94
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 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 FreeFeature < Features::Base validates :price, presence: true default_scope -> { where(feature_type_id: Features::FeatureType.free.id) } after_initialize :set_feature_type protected def set_feature_type feature_type_id = Features::FeatureType.free.id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/models/features/free_feature.rb |