Sha256: 7742d7abbc10ef22491e62b8d166394c67db95a210a26947f55b24a7d5c8c7b3
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
# Include hook code here if defined?(Rails) if Rails::VERSION::MAJOR == 2 # Rails 2.x.x initalizer if defined?(ActionController) class ActionController::Base include RightRails::ControllerExtensions helper RightRails::Helpers::Basic, RightRails::Helpers::Rails, RightRails::Helpers::Forms, RightRails::Helpers::Misc end end else # Rails 3 initializer require 'action_controller/railtie' if defined?(ActionController) require 'right_rails' require 'right_rails/controller_extensions' require 'right_rails/java_script_generator' require 'right_rails/helpers' require 'right_rails/helpers/basic' require 'right_rails/helpers/forms' require 'right_rails/helpers/misc' require 'right_rails/helpers/rails' class ActionController::Base include RightRails::ControllerExtensions helper RightRails::Helpers::Basic, RightRails::Helpers::Forms, RightRails::Helpers::Misc, RightRails::Helpers::Rails end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
right-rails-0.5.2 | init.rb |
right-rails-0.5.1 | init.rb |
right-rails-0.5.0 | init.rb |