Sha256: bdc548a0ee49a1253fe70b8b5581f0b39acd580b8beb9e3800c02107caa1e031

Contents?: true

Size: 441 Bytes

Versions: 2

Compression:

Stored size: 441 Bytes

Contents

if Rails::VERSION::MAJOR >= 3
  module Gxapi
    class Engine < Rails::Engine

      config.after_initialize do
        Gxapi.cache = Rails.cache
      end

      config.to_prepare do
        # add our helper
        ApplicationHelper.send(:include, GxapiHelper)
        ApplicationController.send(:include, Gxapi::ControllerMethods)
      end
    end
  end
else
  require File.expand_path('../../../app/helpers/gxapi_helper', __FILE__)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gxapi_rails-0.1.0 lib/gxapi/engine.rb
gxapi_rails-0.0.6 lib/gxapi/engine.rb