Sha256: 7622899861226dde71d020d0db770a93b948e6f610efae4342aefc3ab98a9830

Contents?: true

Size: 228 Bytes

Versions: 57

Compression:

Stored size: 228 Bytes

Contents

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

57 entries across 57 versions & 1 rubygems

Version Path
paid_up-0.9.13 spec/support/controller_macros.rb
paid_up-0.9.12 spec/support/controller_macros.rb
paid_up-0.9.11 spec/support/controller_macros.rb
paid_up-0.9.10 spec/support/controller_macros.rb
paid_up-0.9.9 spec/support/controller_macros.rb
paid_up-0.9.8 spec/support/controller_macros.rb
paid_up-0.9.7 spec/support/controller_macros.rb
paid_up-0.9.6 spec/support/controller_macros.rb
paid_up-0.9.5 spec/support/controller_macros.rb
paid_up-0.9.4 spec/support/controller_macros.rb
paid_up-0.9.3 spec/support/controller_macros.rb
paid_up-0.9.2 spec/support/controller_macros.rb
paid_up-0.9.1 spec/support/controller_macros.rb
paid_up-0.9.0 spec/support/controller_macros.rb
paid_up-0.8.1 spec/support/controller_macros.rb
paid_up-0.7.11 spec/support/controller_macros.rb
paid_up-0.7.10 spec/support/controller_macros.rb
paid_up-0.7.9 spec/support/controller_macros.rb
paid_up-0.7.8 spec/support/controller_macros.rb
paid_up-0.7.7 spec/support/controller_macros.rb