mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
added description for rails generators, and fixed sentence formation for active_support/notifications [ci skip]
This commit is contained in:
parent
049caa9e5a
commit
30af171af1
3 changed files with 5 additions and 1 deletions
|
@ -16,7 +16,7 @@ module ActiveSupport
|
|||
# render text: 'Foo'
|
||||
# end
|
||||
#
|
||||
# That executes the block first and notifies all subscribers once done.
|
||||
# That first executes the block and then notifies all subscribers once done.
|
||||
#
|
||||
# In the example above +render+ is the name of the event, and the rest is called
|
||||
# the _payload_. The payload is a mechanism that allows instrumenters to pass
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
require 'rails/generators'
|
||||
|
||||
#if no argument/-h/--help is passed to rails destroy command, then
|
||||
#it generates the help associated.
|
||||
if [nil, "-h", "--help"].include?(ARGV.first)
|
||||
Rails::Generators.help 'destroy'
|
||||
exit
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
require 'rails/generators'
|
||||
|
||||
#if no argument/-h/--help is passed to rails generate command, then
|
||||
#it generates the help associated.
|
||||
if [nil, "-h", "--help"].include?(ARGV.first)
|
||||
Rails::Generators.help 'generate'
|
||||
exit
|
||||
|
|
Loading…
Reference in a new issue