This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
iterations = 10_000_000 | |
a = "hub" | |
b = "git" | |
Benchmark.bm do |bm| | |
bm.report do | |
iterations.times do | |
["I'm", a, b].join(" ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#userful gem [rack-p3p](https://github.com/hoopla/rack-p3p) | |
# [ie_iframe_cookies](https://github.com/grosser/ie_iframe_cookies) | |
# encoding: utf-8 | |
class ApplicationController < ActionController::Base | |
protect_from_forgery | |
before_filter :set_p3p | |
def set_p3p | |
headers['P3P'] = "policyref=\"/w3c/p3p.xml\", CP=\"ALL DSP COR CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT\"" | |
end |
NewerOlder