Sha256: 8d0f94f0b1ee2fb335c81f7519ce0cfec6df876827d9ea2935f9626ef26ac192

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

require "surrounded/rails/version"
require "surrounded"
require "rails"
module Surrounded
  class Railtie < ::Rails::Railtie
    initializer 'surrounded.active_record' do |app|
      ActiveRecord::Base.send(:include, Surrounded)
    end

    initializer 'surrounded.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.2.0 lib/surrounded/railtie.rb