Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11254: typos_fixed.diff

File typos_fixed.diff, 1.2 kB (added by ernesto.jimenez, 6 months ago)

Patch fixing typos against r8985

  • activesupport/lib/active_support/callbacks.rb

    old new  
    22  # Callbacks are hooks into the lifecycle of an object that allow you to trigger logic 
    33  # before or after an alteration of the object state. 
    44  # 
    5   # This mixing this module allos you to define callbacks in your class. 
     5  # Mixing in this module allos you to define callbacks in your class. 
    66  # 
    77  # Example: 
    88  #   class Storage 
     
    165165 
    166166    # Runs all the callbacks defined for the given options.  
    167167    #  
    168     # If a block is given it will be called after each callback reciving as arguments: 
     168    # If a block is given it will be called after each callback receiving as arguments 
    169169    # 
    170170    #  * the result from the callback 
    171171    #  * the object which has the callback 
    172172    # 
    173     # If the result from the block evaluates as false, callback chain is stopped. 
     173    # If the result from the block evaluates to false, the callback chain is stopped. 
    174174    # 
    175175    # Example: 
    176176    #   class Storage