Sha256: 902db7ad5c8f1dee70a53916ac9befd87525fe061b79988a6e6303119f30e06f

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

# == Schema Information
#
# Table name: feedback_reasons
#
#  id                 :integer          not null, primary key
#  sort_order         :integer          default(0)
#  title_translations :hstore           default({})
#  notes_translations :hstore           default({})
#  created_at         :datetime         not null
#  updated_at         :datetime         not null
#

class FeedbackReason < ActiveRecord::Base
  translates :title, :notes

  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/feedback_reason.rb