Sha256: 50e82000beafe18e7f8fd5313ec790ebc5c3c6a44342e70673402a8c458303f3

Contents?: true

Size: 597 Bytes

Versions: 7

Compression:

Stored size: 597 Bytes

Contents

module Typus
  module Authentication
    module Base

      def admin_user
        @admin_user
      end

      def authenticate; end
      def check_if_user_can_perform_action_on_user; end
      def check_if_user_can_perform_action_on_resources; end
      def check_if_user_can_perform_action_on_resource; end
      def check_resource_ownership; end
      def check_resources_ownership; end
      def set_attributes_on_create; end
      def set_attributes_on_update; end

      def not_allowed
        render :text => "Not allowed!", :status => :unprocessable_entity
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typus-3.1.0.rc18 lib/typus/authentication/base.rb
typus-3.1.0.rc17 lib/typus/authentication/base.rb
typus-3.1.0.rc16 lib/typus/authentication/base.rb
typus-3.1.0.rc15 lib/typus/authentication/base.rb
typus-3.1.0.rc14 lib/typus/authentication/base.rb
typus-3.1.0.rc13 lib/typus/authentication/base.rb
typus-3.1.0.rc12 lib/typus/authentication/base.rb