Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 29 lines (24 sloc) 0.605 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
# Include hook code here

require 'right_rails'
require 'rjs_renderer'

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
Something went wrong with that request. Please try again.