Sha256: 2ff0da199b6d8ffc9625e06daf187e9e2677fd7856470da9344f1a96b47da09a

Contents?: true

Size: 135 Bytes

Versions: 3

Compression:

Stored size: 135 Bytes

Contents

class Feedback < ActiveRecord::Base

  scope :sorted, -> { order('created_at DESC') }

  validates :name, :message, presence: true
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adminos-1.0.0.pre.rc.5 lib/generators/templates/feedback/auto/app/models/feedback.rb
adminos-1.0.0.pre.rc.4 lib/generators/templates/feedback/auto/app/models/feedback.rb
adminos-1.0.0.pre.rc.3 lib/generators/templates/feedback/auto/app/models/feedback.rb