Skip to content

Instantly share code, notes, and snippets.

View rohit-lingayat-sd's full-sized avatar

Rohit Lingayat rohit-lingayat-sd

View GitHub Profile
@rohit-lingayat-sd
rohit-lingayat-sd / ci.yml
Last active May 9, 2021 13:00
Continuous integration with GitHub action for ruby on rails application
name: Continuous integration
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
@rohit-lingayat-sd
rohit-lingayat-sd / rack.rb
Created May 24, 2020 16:43
you need to update the rack.rb
if key == 'key name'
same_site = '; SameSite=None; Secure'
end
require 'rack/utils'
Rack::Utils.module_eval do
def self.set_cookie_header!(header, key, value)
case value
when Hash
domain = "; domain=" + value[:domain] if value[:domain]
path = "; path=" + value[:path] if value[:path]
max_age = "; max-age=" + value[:max_age] if value[:max_age]
expires = "; expires=" +