Sha256: 18ef692bbb3c5cb7f0e0132f05cd35261359046609ccf60169f88ce1263a2556

Contents?: true

Size: 344 Bytes

Versions: 83

Compression:

Stored size: 344 Bytes

Contents

module Tenon
  class TenonCallout < ActiveRecord::Base
    # Scopes, attachments, etc.
    include Tenon::Reorderable
    default_scope { order(:list_order) }

    # Validations
    validates_presence_of :title, :icon
    validates_uniqueness_of :title
    # Relationships

    def self.published
      where(published: true)
    end
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
tenon-1.0.2 app/models/tenon/tenon_callout.rb
tenon-1.0.1 app/models/tenon/tenon_callout.rb
tenon-1.0 app/models/tenon/tenon_callout.rb