Sha256: 076e1f4f280cf535e97eee7c8a96c3e0ff575653d131922672fe8a360eac46a9

Contents?: true

Size: 336 Bytes

Versions: 5

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

module Permisi
  module Backend
    module ActiveRecord
      class ActorRole < ::ActiveRecord::Base
        belongs_to :actor, touch: true
        belongs_to :role

        after_destroy :touch_actor

        private

        def touch_actor
          actor.touch
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
permisi-0.1.5 lib/permisi/backend/active_record/actor_role.rb
permisi-0.1.4 lib/permisi/backend/active_record/actor_role.rb
permisi-0.1.3 lib/permisi/backend/active_record/actor_role.rb
permisi-0.1.2 lib/permisi/backend/active_record/actor_role.rb
permisi-0.1.1 lib/permisi/backend/active_record/actor_role.rb