Sha256: 9abbf7ec84ff64f12f31e92600dedef5163f8060d4035fb73b6e7e968903c06d

Contents?: true

Size: 459 Bytes

Versions: 14

Compression:

Stored size: 459 Bytes

Contents

require 'crummy'
require 'rails'

module Crummy
  class Railtie < Rails::Railtie
    initializer "crummy.action_controller" do |app|
      if defined?(ActionController)
        require 'crummy/action_controller'
	ActionController::Base.send :include,  Crummy::ControllerMethods 
      end
    end
    
    initializer "crummy.action_view" do |app|
      require 'crummy/action_view'
      ActionView::Base.send :include, Crummy::ViewMethods
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
crummy-schema-dot-org-1.9.0 lib/crummy/railtie.rb
crummy-1.8.0 lib/crummy/railtie.rb
crummy-1.7.2 lib/crummy/railtie.rb
crummy-1.7.1 lib/crummy/railtie.rb
crummy-1.7.0 lib/crummy/railtie.rb
crummy-1.6.0 lib/crummy/railtie.rb
crummy-1.5.0 lib/crummy/railtie.rb
crummy-1.3.6 lib/crummy/railtie.rb
crummy-1.3.5 lib/crummy/railtie.rb
crummy-1.3 lib/crummy/railtie.rb
crummy-1.2 lib/crummy/railtie.rb
crummy-1.1.1 lib/crummy/railtie.rb
crummy-1.1.0 lib/crummy/railtie.rb
crummy-1.0.1 lib/crummy/railtie.rb