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.27.1 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.27.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.26.1 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.26.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.25.5 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.25.4 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.25.3 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.25.1 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.25.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.24.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.22.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.21.1 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.21.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.20.1 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.20.0 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.19.8 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.19.7 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.19.6 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.19.4 app/controllers/concerns/rs_cookies.rb
rocket_cms-0.19.3 app/controllers/concerns/rs_cookies.rb