diff options
author | Mark Rushakof <mark.rushakoff@gmail.com> | 2012-04-27 00:00:30 -0700 |
---|---|---|
committer | Mark Rushakof <mark.rushakoff@gmail.com> | 2012-04-27 00:00:30 -0700 |
commit | 8cc4159018929fb4b0aa431b7041f6a66f160180 (patch) | |
tree | 3b6028a1cebeda9bb7a4f1babaf539a09d045289 /railties/lib | |
parent | 504e539166ab3528e6377ae8bcf5ddacb3572729 (diff) | |
download | rails-8cc4159018929fb4b0aa431b7041f6a66f160180.tar.gz rails-8cc4159018929fb4b0aa431b7041f6a66f160180.tar.bz2 rails-8cc4159018929fb4b0aa431b7041f6a66f160180.zip |
Use <tt>Foo::Bar</tt> instead of +Foo::Bar+
The latter doesn't render as code in HTML output.
Regex used in Rubymine to locate the latter form:
(\+)(:*\w+:(?::|\w)+)(\+)
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/configuration.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/paths.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/configuration.rb b/railties/lib/rails/configuration.rb index d8ca6cbd21..493eacdc5a 100644 --- a/railties/lib/rails/configuration.rb +++ b/railties/lib/rails/configuration.rb @@ -16,7 +16,7 @@ module Rails # # config.middleware.use Magical::Unicorns # - # This will put the +Magical::Unicorns+ middleware on the end of the stack. + # This will put the <tt>Magical::Unicorns</tt> middleware on the end of the stack. # You can use +insert_before+ if you wish to add a middleware before another: # # config.middleware.insert_before ActionDispatch::Head, Magical::Unicorns diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb index dd1790299d..9b4a69f19f 100644 --- a/railties/lib/rails/paths.rb +++ b/railties/lib/rails/paths.rb @@ -8,7 +8,7 @@ module Rails # 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 +Rails::Paths::Path+ object back like below: + # This means we can get a <tt>Rails::Paths::Path</tt> object back like below: # # path = root["app/controllers"] # path.eager_load? # => true |