Sha256: 6c2869d77ee9ab82be3335a9c8c658268c5c31abbf8f2dd4294ccf4ed0214ec4

Contents?: true

Size: 537 Bytes

Versions: 5

Compression:

Stored size: 537 Bytes

Contents

module ::ActiveAdmin
  module Devise
    class << self
      alias_method :old_controllers, :controllers
      def controllers
        old_controllers.merge({invitations: "active_admin/devise/invitations"})
      end
      alias_method :old_controllers_for_filters, :controllers_for_filters
      def controllers_for_filters
        old_controllers_for_filters + [InvitationsController]
      end
    end
    class InvitationsController < ::Devise::InvitationsController
      include ::ActiveAdmin::Devise::Controller
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
admin_invitable-1.0.0 lib/admin_invitable/activeadmin_invitable_patch.rb
admin_invitable-0.1.0 lib/admin_invitable/activeadmin_invitable_patch.rb
admin_invitable-0.0.3 lib/admin_invitable/activeadmin_invitable_patch.rb
admin_invitable-0.0.2 lib/admin_invitable/activeadmin_invitable_patch.rb
admin_invitable-0.0.1 lib/admin_invitable/activeadmin_invitable_patch.rb