Skip to content

Commit

Permalink
fix ActiveModel::Validations::Callbacks doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Xie committed Apr 15, 2012
1 parent 0631b26 commit 6e8a1bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activemodel/lib/active_model/validations/callbacks.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ module Callbacks
# Provides an interface for any class to have <tt>before_validation</tt> and # Provides an interface for any class to have <tt>before_validation</tt> and
# <tt>after_validation</tt> callbacks. # <tt>after_validation</tt> callbacks.
# #
# First, extend ActiveModel::Callbacks from the class you are creating: # First, include ActiveModel::Validations::Callbacks from the class you are
# creating:
# #
# class MyModel # class MyModel
# include ActiveModel::Validations::Callbacks # include ActiveModel::Validations::Callbacks
Expand Down

0 comments on commit 6e8a1bd

Please sign in to comment.