Method: FbChannelFileApp.call
- Defined in:
- lib/fb-channel-file/engine.rb
.call(env) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/fb-channel-file/engine.rb', line 12 def call(env) puts I18n.locale [ 200, { "Pragma" => "public", "Cache-Control" => "max-age=#{60*60*24*365}", "Expires" => CGI.rfc1123_date(1.year.from_now), "Content-Type" => "text/html" }, ["<script src='//connect.facebook.net/#{locale}/all.js'></script>"] ] end |