aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorFlorent Guilleux <florent2@gmail.com>2012-12-01 13:22:49 -0500
committerFlorent Guilleux <florent2@gmail.com>2012-12-01 13:22:49 -0500
commit8dc4041a9b2fb0e8bc2bcb72ab93adb8722e62cd (patch)
treed3c21858cb1a7fae8339b4542b200d59dc9ec815 /railties/lib
parent90c887fa7d0c454b7533e208daefc342dea4d5f3 (diff)
downloadrails-8dc4041a9b2fb0e8bc2bcb72ab93adb8722e62cd.tar.gz
rails-8dc4041a9b2fb0e8bc2bcb72ab93adb8722e62cd.tar.bz2
rails-8dc4041a9b2fb0e8bc2bcb72ab93adb8722e62cd.zip
Revert "Remove trailing whitespaces"
This reverts commit 90c887fa7d0c454b7533e208daefc342dea4d5f3.
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/code_statistics.rb2
-rw-r--r--railties/lib/rails/generators/rails/model/USAGE8
-rw-r--r--railties/lib/rails/source_annotation_extractor.rb2
3 files changed, 6 insertions, 6 deletions
diff --git a/railties/lib/rails/code_statistics.rb b/railties/lib/rails/code_statistics.rb
index 9ca5046369..1aed2796c1 100644
--- a/railties/lib/rails/code_statistics.rb
+++ b/railties/lib/rails/code_statistics.rb
@@ -38,7 +38,7 @@ class CodeStatistics #:nodoc:
next unless file_name =~ pattern
comment_started = false
-
+
case file_name
when /.*\.js$/
comment_pattern = /^\s*\/\//
diff --git a/railties/lib/rails/generators/rails/model/USAGE b/railties/lib/rails/generators/rails/model/USAGE
index 9076992a8c..e29e19490e 100644
--- a/railties/lib/rails/generators/rails/model/USAGE
+++ b/railties/lib/rails/generators/rails/model/USAGE
@@ -21,7 +21,7 @@ Description:
Available field types:
- Just after the field name you can specify a type like text or boolean.
+ Just after the field name you can specify a type like text or boolean.
It will generate the column with the associated SQL type. For instance:
`rails generate model post title:string body:text`
@@ -57,16 +57,16 @@ Available field types:
limit Set the maximum size of the field giving a number between curly braces
default Set a default value for the field
- precision Defines the precision for the decimal fields
+ precision Defines the precision for the decimal fields
scale Defines the scale for the decimal fields
- uniq Defines the field values as unique
+ uniq Defines the field values as unique
index Will add an index on the field
Examples:
`rails generate model user pseudo:string{30}`
`rails generate model user pseudo:string:uniq`
-
+
Examples:
`rails generate model account`
diff --git a/railties/lib/rails/source_annotation_extractor.rb b/railties/lib/rails/source_annotation_extractor.rb
index b718bc37bd..3474b02af4 100644
--- a/railties/lib/rails/source_annotation_extractor.rb
+++ b/railties/lib/rails/source_annotation_extractor.rb
@@ -32,7 +32,7 @@ class SourceAnnotationExtractor
end
# Prints all annotations with tag +tag+ under the root directories +app+, +config+, +lib+,
- # +script+, and +test+ (recursively). Filenames with extension
+ # +script+, and +test+ (recursively). Filenames with extension
# +.builder+, +.rb+, +.erb+, +.haml+, +.slim+, +.css+, +.scss+, +.js+,
# +.coffee+, and +.rake+ are taken into account. The +options+ hash is passed to each
# annotation's +to_s+.