aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_assignment.rb
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-09-18 22:21:21 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-09-19 22:43:29 -0500
commit19a41ebaf5868329467eec183f41276a6e1e6d88 (patch)
tree5cfc849ce89ee1a3f8be1b7e5936318e1f94329c /activerecord/lib/active_record/attribute_assignment.rb
parent1102aa2f64af688b47ee5fe4ba3e69acf0227e03 (diff)
downloadrails-19a41ebaf5868329467eec183f41276a6e1e6d88.tar.gz
rails-19a41ebaf5868329467eec183f41276a6e1e6d88.tar.bz2
rails-19a41ebaf5868329467eec183f41276a6e1e6d88.zip
update AR::AttributeAssignment documentation [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/attribute_assignment.rb')
-rw-r--r--activerecord/lib/active_record/attribute_assignment.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/attribute_assignment.rb b/activerecord/lib/active_record/attribute_assignment.rb
index fa8c5ac95c..af13b75a9d 100644
--- a/activerecord/lib/active_record/attribute_assignment.rb
+++ b/activerecord/lib/active_record/attribute_assignment.rb
@@ -6,11 +6,11 @@ module ActiveRecord
include ActiveModel::ForbiddenAttributesProtection
# Allows you to set all the attributes by passing in a hash of attributes with
- # keys matching the attribute names (which again matches the column names)
+ # keys matching the attribute names (which again matches the column names).
#
- # If the passed hash responds to permitted? method and the return value
- # of this method is false an ActiveModel::ForbiddenAttributesError exception
- # is raised.
+ # If the passed hash responds to <tt>permitted?</tt> method and the return value
+ # of this method is +false+ an <tt>ActiveModel::ForbiddenAttributesError</tt>
+ # exception is raised.
def assign_attributes(new_attributes)
return if new_attributes.blank?
@@ -59,7 +59,7 @@ module ActiveRecord
# written_on (a date type) with Date.new("2004", "6", "24"). You can also specify a typecast character in the
# parentheses to have the parameters typecasted before they're used in the constructor. Use i for Fixnum,
# f for Float, s for String, and a for Array. If all the values for a given attribute are empty, the
- # attribute will be set to nil.
+ # attribute will be set to +nil+.
def assign_multiparameter_attributes(pairs)
execute_callstack_for_multiparameter_attributes(
extract_callstack_for_multiparameter_attributes(pairs)