Sha256: 6333c59dc809a616b6363473cee496a210ef7c8c5170fd00243c3998a04b7124

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

module CurrentHelper
  def current_user
    @current_user ||= User.first || User.create!(email: "test@user.com", first_name: "Test", last_name: "User")
  end

  def current_team
    @current_user ||= Team.first || Team.create!(name: "Test Team", email: "test@team.com", owner: current_user)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pay-lago-0.1.1 test/dummy/app/helpers/current_helper.rb
pay-lago-0.1.0 test/dummy/app/helpers/current_helper.rb