Sha256: 2d76d1534944adbd529e48a729749aee2f1d1c66f618974757afdd8803a8a1fa

Contents?: true

Size: 301 Bytes

Versions: 48

Compression:

Stored size: 301 Bytes

Contents

module RsCookies
  extend ActiveSupport::Concern
  included do
    def set_cookies_on!
      cookies.permanent['cookies_on'] = {
          value: "1",
          httponly: false,
      } if cookies['cookies_on'].nil? || cookies['cookies_on'] != "1"
    end
    before_action :set_cookies_on!
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
rocket_cms-0.37.1 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.37.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.36.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.35.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.34.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.33.1 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.33.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.32.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.31.1 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.31.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.30.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.29.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.28.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.27.8 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.27.7 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.27.6 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.27.5 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.27.4 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.27.3 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.27.2 app/controllers/concerns/rs_cookies.rb