Sha256: c32853c98f6d04b28ecbeee23c886a8605b300a0e70849fce30bcb3ea8468dad
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
module ABPlugin module Adapters module Rails def self.included(klass) if defined?(::ApplicationController) raise 'Please require a_b_plugin before all other plugins.' end klass.prepend_before_filter :a_b_plugin_before_filter end private def a_b_plugin_before_filter ABPlugin.session_id = session.session_id end end end end ActionController::Base.send(:include, ABRails::Adapters::Rails) ActionController::Base.send(:include, ABRails::Helper) ActionController::Base.helper(ABRails::Helper)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
a_b_plugin-0.1.0 | lib/a_b_plugin/adapters/rails.rb |