diff options
author | Xavier Noria <fxn@hashref.com> | 2010-07-30 02:30:04 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-07-30 02:30:04 +0200 |
commit | 755af497555fde16db86f7e51f6462b0aca79b49 (patch) | |
tree | 9280835167f7ea7422df010f67c65c729dd26de1 /railties | |
parent | a7a6a2ff46b173b420bd493d727772531d72658f (diff) | |
download | rails-755af497555fde16db86f7e51f6462b0aca79b49.tar.gz rails-755af497555fde16db86f7e51f6462b0aca79b49.tar.bz2 rails-755af497555fde16db86f7e51f6462b0aca79b49.zip |
edit pass to apply API guideline wrt the use of "# =>" in example code
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/active_model.rb | 6 | ||||
-rw-r--r-- | railties/lib/rails/generators/test_case.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/generators/active_model.rb b/railties/lib/rails/generators/active_model.rb index fe6321af30..4b828340d2 100644 --- a/railties/lib/rails/generators/active_model.rb +++ b/railties/lib/rails/generators/active_model.rb @@ -9,16 +9,16 @@ module Rails # For example: # # ActiveRecord::Generators::ActiveModel.find(Foo, "params[:id]") - # #=> "Foo.find(params[:id])" + # # => "Foo.find(params[:id])" # # Datamapper::Generators::ActiveModel.find(Foo, "params[:id]") - # #=> "Foo.get(params[:id])" + # # => "Foo.get(params[:id])" # # On initialization, the ActiveModel accepts the instance name that will # receive the calls: # # builder = ActiveRecord::Generators::ActiveModel.new "@foo" - # builder.save #=> "@foo.save" + # builder.save # => "@foo.save" # # The only exception in ActiveModel for ActiveRecord is the use of self.build # instead of self.new. diff --git a/railties/lib/rails/generators/test_case.rb b/railties/lib/rails/generators/test_case.rb index 36bc542ffe..3376b422cb 100644 --- a/railties/lib/rails/generators/test_case.rb +++ b/railties/lib/rails/generators/test_case.rb @@ -68,7 +68,7 @@ module Rails # Captures the given stream and returns it: # # stream = capture(:stdout){ puts "Cool" } - # stream #=> "Cool\n" + # stream # => "Cool\n" # def capture(stream) begin |