module Arpa module Repositories module Actions class RepositoryAction < ActiveRecord::Base default_scope {order(name: :asc)} alias_attribute :resource_id, :repository_resource_id belongs_to :resource, foreign_key: 'repository_resource_id', class_name: 'Arpa::Repositories::Resources::RepositoryResource' has_and_belongs_to_many :roles, class_name: 'Arpa::Repositories::Roles::RepositoryRole' end end end end