Skip to content

Commit

Permalink
Fix few typos and improve markup at some levels
Browse files Browse the repository at this point in the history
  • Loading branch information
robin850 committed Dec 24, 2013
1 parent 6f1d0b5 commit 6e2d35d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions activemodel/lib/active_model/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module ActiveModel
# == Active \Model \Errors
#
# Provides a modified +Hash+ that you can include in your object
# for handling error messages and interacting with Action Pack helpers.
# for handling error messages and interacting with Action View helpers.
#
# A minimal implementation could be:
#
Expand Down Expand Up @@ -279,7 +279,7 @@ def to_hash(full_messages = false)
# If +message+ is a proc, it will be called, allowing for things like
# <tt>Time.now</tt> to be used within an error.
#
# If the <tt>:strict</tt> option is set to true will raise
# If the <tt>:strict</tt> option is set to +true+, it will raise
# ActiveModel::StrictValidationFailed instead of adding the error.
# <tt>:strict</tt> option can also be set to any other exception.
#
Expand Down
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/lint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Lint
#
# These tests do not attempt to determine the semantic correctness of the
# returned values. For instance, you could implement <tt>valid?</tt> to
# always return true, and the tests would pass. It is up to you to ensure
# always return +true+, and the tests would pass. It is up to you to ensure
# that the values are semantically meaningful.
#
# Objects you pass in are expected to return a compliant object from a call
Expand Down
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/secure_password.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self

module ClassMethods
# Adds methods to set and authenticate against a BCrypt password.
# This mechanism requires you to have a password_digest attribute.
# This mechanism requires you to have a +password_digest+ attribute.
#
# Validations for presence of password on create, confirmation of password
# (using a +password_confirmation+ attribute) are automatically added. If
Expand Down
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def serializable_hash(options = nil)
# retrieve the value for a given attribute differently:
#
# class MyClass
# include ActiveModel::Validations
# include ActiveModel::Serialization
#
# def initialize(data = {})
# @data = data
Expand Down

0 comments on commit 6e2d35d

Please sign in to comment.