aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorAvnerCohen <israbirding@gmail.com>2012-10-15 00:19:07 +0200
committerAvnerCohen <israbirding@gmail.com>2012-10-15 00:19:07 +0200
commitc615161585f8c3c5d430cc7f3bb77300dc7833d1 (patch)
tree40af67f43b10f6a044f6c1da15ea0442b664983b /railties/lib/rails
parent319fd4ee4e76a813ae6feff801da680bd1aa117e (diff)
downloadrails-c615161585f8c3c5d430cc7f3bb77300dc7833d1.tar.gz
rails-c615161585f8c3c5d430cc7f3bb77300dc7833d1.tar.bz2
rails-c615161585f8c3c5d430cc7f3bb77300dc7833d1.zip
Hash syntax to 1.9 style
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/paths.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb
index 9826aecb54..acd9b71b55 100644
--- a/railties/lib/rails/paths.rb
+++ b/railties/lib/rails/paths.rb
@@ -5,7 +5,7 @@ module Rails
# paths by a Hash like API. It requires you to give a physical path on initialization.
#
# root = Root.new "/rails"
- # root.add "app/controllers", :eager_load => true
+ # root.add "app/controllers", eager_load: true
#
# The command above creates a new root object and add "app/controllers" as a path.
# This means we can get a <tt>Rails::Paths::Path</tt> object back like below:
@@ -26,7 +26,7 @@ module Rails
# contains the path with the same path value given to +add+. In some situations,
# you may not want this behavior, so you can give :with as option.
#
- # root.add "config/routes", :with => "config/routes.rb"
+ # root.add "config/routes", with: "config/routes.rb"
# root["config/routes"].inspect # => ["config/routes.rb"]
#
# The +add+ method accepts the following options as arguments: