diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2015-08-16 14:14:45 +0200 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2015-08-16 14:16:20 +0200 |
commit | b803798b9d168b47a23343ee17d3ef01e986a399 (patch) | |
tree | 3a7822b0ee7dfc58ddda90c6f9814b46bf758d4c /railties/lib/rails | |
parent | fe19d07138fe69e05ce8b17534c3c548a0a92575 (diff) | |
download | rails-b803798b9d168b47a23343ee17d3ef01e986a399.tar.gz rails-b803798b9d168b47a23343ee17d3ef01e986a399.tar.bz2 rails-b803798b9d168b47a23343ee17d3ef01e986a399.zip |
Tiny documentation fixes [ci skip]
* Add missing `def` and remove useless `do` keywords.
* Move `:nodoc:` in front of the methods' definition so that methods
under these ones are correctly visible on the API.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/paths.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb index 8a7aa6f50a..e47616a87f 100644 --- a/railties/lib/rails/paths.rb +++ b/railties/lib/rails/paths.rb @@ -123,8 +123,7 @@ module Rails options[:load_path] ? load_path! : skip_load_path! end - # :nodoc: - def absolute_current + def absolute_current # :nodoc: File.expand_path(@current, @root.path) end @@ -180,8 +179,7 @@ module Rails @paths end - # :nodoc: - def extensions + def extensions # :nodoc: $1.split(',') if @glob =~ /\{([\S]+)\}/ end |