Sha256: 9bf260c1410a5e262ad597dc6c0a0b6673ac040575a9fa3badc7fa1dafa2ff59

Contents?: true

Size: 582 Bytes

Versions: 1

Compression:

Stored size: 582 Bytes

Contents

# Include hook code here

require 'right_rails'

if defined?(Rails)
  unless ::Rails.version < "3.1"
    module RightRails
      class Engine < ::Rails::Engine
      end
    end
  end

  if Rails::VERSION::MAJOR > 2
    # Rails 3 initializer
    require 'action_controller/railtie'
  end

  if defined?(ActionController)
    class ActionController::Base
      include RightRails::ControllerExtensions

      helper RightRails::Helpers::Basic,
             RightRails::Helpers::Rails,
             RightRails::Helpers::Forms,
             RightRails::Helpers::Misc
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
right-rails-1.2.2 init.rb