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

Version Path
recurly-0.4.16 lib/recurly/rails3/railtie.rb
recurly-0.4.15 lib/recurly/rails3/railtie.rb
recurly-0.4.14 lib/recurly/rails3/railtie.rb
recurly-0.4.13 lib/recurly/rails3/railtie.rb
recurly-0.4.11 lib/recurly/rails3/railtie.rb
recurly-0.4.10 lib/recurly/rails3/railtie.rb
recurly-0.4.8 lib/recurly/rails3/railtie.rb
recurly-0.4.7 lib/recurly/rails3/railtie.rb
recurly-0.4.6 lib/recurly/rails3/railtie.rb
recurly-0.4.5 lib/recurly/rails3/railtie.rb
recurly-0.4.4 lib/recurly/rails3/railtie.rb
recurly-0.4.3 lib/recurly/rails3/railtie.rb
recurly-0.4.2 lib/recurly/rails3/railtie.rb
recurly-0.4.1 lib/recurly/rails3/railtie.rb
recurly-0.4.0 lib/recurly/rails3/railtie.rb
recurly-0.3.4 lib/recurly/rails3/railtie.rb
recurly-0.3.3 lib/recurly/rails3/railtie.rb
recurly-0.3.2 lib/recurly/rails3/railtie.rb