Sha256: 3a530051c31f7899741c687d07d9f2b29c6756fd3c8cc80a60efc9b286808928

Contents?: true

Size: 206 Bytes

Versions: 3

Compression:

Stored size: 206 Bytes

Contents

module Adeia
  class Action < ActiveRecord::Base
    has_many :action_permissions, dependent: :destroy
    has_many :permissions, through: :action_permissions

    validates :name, presence: true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adeia-0.4.0 app/models/adeia/action.rb
adeia-0.3.0 app/models/adeia/action.rb
adeia-0.2.0 app/models/adeia/action.rb