Sha256: cd35e83a58f9e86c11fb7be1b75d8fc79bba388366754a61632e72c1d9990a78

Contents?: true

Size: 573 Bytes

Versions: 7

Compression:

Stored size: 573 Bytes

Contents

module Lanes

    module API

        class DummyUser
            def can_read?(*args)
                true
            end
            def can_write?(*args)
                true
            end
            def can_delete?(*args)
                true
            end
        end

        class AuthenticationProvider
            USER = DummyUser.new

            def initialize(request)
            end

            def current_user
                USER
            end

            def wrap_reply(model, req)
                yield
            end

        end
    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lanes-0.5.0 lib/lanes/api/null_authentication_provider.rb
lanes-0.4.0 lib/lanes/api/null_authentication_provider.rb
lanes-0.3.0 lib/lanes/api/null_authentication_provider.rb
lanes-0.1.9.5 lib/lanes/api/null_authentication_provider.rb
lanes-0.1.9 lib/lanes/api/null_authentication_provider.rb
lanes-0.1.8 lib/lanes/api/null_authentication_provider.rb
lanes-0.1.7 lib/lanes/api/null_authentication_provider.rb