Sha256: bda9ca1a691c9371f091d42397ed1dc9be73f604738a7285d30420ddcfc586a0

Contents?: true

Size: 403 Bytes

Versions: 3

Compression:

Stored size: 403 Bytes

Contents

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

      config.after_initialize do
        Gxapi.cache = Rails.cache
        # 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

3 entries across 3 versions & 1 rubygems

Version Path
gxapi_rails-0.0.5 lib/gxapi/engine.rb
gxapi_rails-0.0.4 lib/gxapi/engine.rb
gxapi_rails-0.0.3 lib/gxapi/engine.rb