Sha256: a573328c96e59096efaf10d023b312f9bf559e0f6bacc6fc6d32054406695ea2

Contents?: true

Size: 363 Bytes

Versions: 22

Compression:

Stored size: 363 Bytes

Contents

module Symphonia
  class AdminModule < ApplicationRecord
    self.table_name = 'admin_modules'

    belongs_to :user
    store :settings, coder: JSON

    validates :title, presence: true
    validates :panel_type, inclusion: { in: %w(default primary success info warning danger) }


    def body_path
      # override me
      self.description
    end
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
symphonia-3.4.0 app/models/symphonia/admin_module.rb
symphonia-3.3.4 app/models/symphonia/admin_module.rb
symphonia-3.3.3 app/models/symphonia/admin_module.rb
symphonia-3.3.2 app/models/symphonia/admin_module.rb
symphonia-3.3.0 app/models/symphonia/admin_module.rb
symphonia-3.2.4 app/models/symphonia/admin_module.rb
symphonia-3.2.3 app/models/symphonia/admin_module.rb
symphonia-3.2.2 app/models/symphonia/admin_module.rb
symphonia-3.2.1 app/models/symphonia/admin_module.rb
symphonia-3.1.5 app/models/symphonia/admin_module.rb
symphonia-3.1.4 app/models/symphonia/admin_module.rb
symphonia-3.1.3 app/models/symphonia/admin_module.rb
symphonia-3.1.2 app/models/symphonia/admin_module.rb
symphonia-3.1.1 app/models/symphonia/admin_module.rb
symphonia-3.1.0 app/models/symphonia/admin_module.rb
symphonia-3.0.3 app/models/symphonia/admin_module.rb
symphonia-3.0.2 app/models/symphonia/admin_module.rb
symphonia-2.2.1 app/models/symphonia/admin_module.rb
symphonia-3.0.1 app/models/symphonia/admin_module.rb
symphonia-3.0.0 app/models/symphonia/admin_module.rb