Sha256: 8648dede164c9bbb262a07fc192851c263b138724cee691fb6729708ecb6ea8b
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 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 initializer 'surrounded_rails.action_view' do |app| ActionView::Base.send(:include, Surrounded) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
surrounded-rails-0.4.0 | lib/surrounded_rails/railtie.rb |
surrounded-rails-0.3.1 | lib/surrounded_rails/railtie.rb |