Sha256: e459808578a78d2e46d92b2561b152ef0c4a0aab63583dbd029b60699a855a20
Contents?: true
Size: 295 Bytes
Versions: 1
Compression:
Stored size: 295 Bytes
Contents
class Article < ApplicationRecord include Fae::BaseModelConcern acts_as_list add_new_at: :top default_scope { order(:position) } belongs_to :article_category validates :title, presence: true validates :article_category, presence: true def fae_display_field title end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fae-rails-1.6.0 | spec/dummy/app/models/article.rb |