Sha256: 60cf6077f1cf87f15a053304a84b11b7f92bef05572d71b9b7235864eeb7b4cc
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 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({}) # class Feature < ActiveRecord::Base validates :price, presence: true translates :title scope :sorted, -> { order("#{quoted_table_name}.sort_order") } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/models/feature.rb |