Permalink
Browse files

copy edits [ci skip]

  • Loading branch information...
1 parent 6588560 commit 35922c0f82cec8f0094d56838c8ecd2ae989f109 @vijaydev vijaydev committed Mar 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/base.rb
@@ -171,7 +171,7 @@ module ActionController
class Base < Metal
abstract!
- # Shortcut helper to map all ActionController default modules except the ones given:
+ # Shortcut helper that returns all the ActionController modules except the ones passed in the argument:
#
# class MetalController
# ActionController::Base.without_modules(:ParamsWrapper, :Streaming).each do |module|
@@ -180,7 +180,7 @@ class Base < Metal
# end
#
# This gives better control over what you want to exclude and makes it easier
- # to create a bare controller class, instead of listing each required module manually.
+ # to create a bare controller class, instead of listing the modules required manually.
def self.without_modules(*modules)
modules = modules.map do |m|
m.is_a?(Symbol) ? ActionController.const_get(m) : m

0 comments on commit 35922c0

Please sign in to comment.