Sha256: 6d6191bdc40dea4ce08fb08a4c46d533015d33a1961b231579fcf9a28934ef51

Contents?: true

Size: 260 Bytes

Versions: 20

Compression:

Stored size: 260 Bytes

Contents

# frozen_string_literal: true

module ControllerMacros
  def access_anonymous
    sign_out :user
    User.new
  end

  def login_subscriber(subscriber)
    @request.env['devise.mapping'] = Devise.mappings[:user]
    sign_in subscriber
    subscriber
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
paid_up-0.13.21 spec/support/controller_macros.rb
paid_up-0.13.17 spec/support/controller_macros.rb
paid_up-0.13.16 spec/support/controller_macros.rb
paid_up-0.13.14 spec/support/controller_macros.rb
paid_up-0.13.13 spec/support/controller_macros.rb
paid_up-0.13.12 spec/support/controller_macros.rb
paid_up-0.13.11 spec/support/controller_macros.rb
paid_up-0.13.10 spec/support/controller_macros.rb
paid_up-0.13.9 spec/support/controller_macros.rb
paid_up-0.13.8 spec/support/controller_macros.rb
paid_up-0.13.7 spec/support/controller_macros.rb
paid_up-0.13.6 spec/support/controller_macros.rb
paid_up-0.13.5 spec/support/controller_macros.rb
paid_up-0.13.4 spec/support/controller_macros.rb
paid_up-0.13.3 spec/support/controller_macros.rb
paid_up-0.13.2 spec/support/controller_macros.rb
paid_up-0.13.1 spec/support/controller_macros.rb
paid_up-0.13.0 spec/support/controller_macros.rb
paid_up-0.12.4 spec/support/controller_macros.rb
paid_up-0.12.3 spec/support/controller_macros.rb