Module: TestyCookie::Helper

Defined in:
lib/testy_cookie/helper.rb

Instance Method Summary collapse

Instance Method Details



3
4
5
6
# File 'lib/testy_cookie/helper.rb', line 3

def cookie_jar
  @_testy_cookie_cookie_jar ||= Jar.new(self)
  @_testy_cookie_cookie_jar.cookies
end

#cookies_jarObject



8
9
10
11
12
13
14
# File 'lib/testy_cookie/helper.rb', line 8

def cookies_jar
  DEPRECATOR.warn(<<~MSG.squish.freeze)
    `cookies_jar` is deprecated and will be removed in the next major version. Please use `cookie_jar` instead.
  MSG

  cookie_jar
end