Sha256: 1c744d169c0b4a07641b83bc18341e529553918e2c3ebccf5edd312ec9d5202d

Contents?: true

Size: 208 Bytes

Versions: 1

Compression:

Stored size: 208 Bytes

Contents

module Bigmouth
  class Article < ActiveRecord::Base
    belongs_to :user, class_name: Bigmouth.config.user_class
    validates :title, presence: true

    default_scope { order created_at: :desc }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bigmouth-0.0.2 app/models/bigmouth/article.rb