Sha256: 9c25d50c5532fe58cb366731b831b8bc16d0ea84dfce7b1be4bc6595568a3d27
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gxapi_rails-0.0.2 | lib/gxapi/engine.rb |