Sha256: 1408714ec871cb5cdae766c3abc61f1b6350b351665dbfb460294dbe18590f45
Contents?: true
Size: 531 Bytes
Versions: 18
Compression:
Stored size: 531 Bytes
Contents
module Recurly class Railtie < ::Rails::Railtie rake_tasks do load 'recurly/rails3/recurly.rake' end config.after_initialize do Recurly.configure unless Recurly.configured? end initializer :recurly_set_accept_language do ActionController::Base.class_eval do prepend_before_filter do # used to default the current accept language to the latest request Recurly.current_accept_language = request.env["HTTP_ACCEPT_LANGUAGE"] end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems