Sha256: e5d43e79a66747f5a6ef99d0e1f2adde09ed10cdfa201116849409e8455016c7
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
require "surrounded_rails/version" require "surrounded" require "rails" module SurroundedRails class Railtie < ::Rails::Railtie if defined?(ActiveRecord) initializer 'surrounded_rails.active_record' do |app| ActiveRecord::Base.send(:include, Surrounded) end end if defined?(Mongoid) initializer 'surrounded_rails.mongoid' do |app| Mongoid::Document.send(:include, Surrounded) end end initializer 'surrounded_rails.action_controller' do |app| ActionController::Base.send(:include, Surrounded) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
surrounded-rails-0.3.0 | lib/surrounded_rails/railtie.rb |