From 19a41ebaf5868329467eec183f41276a6e1e6d88 Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Tue, 18 Sep 2012 22:21:21 -0500 Subject: update AR::AttributeAssignment documentation [ci skip] --- activerecord/lib/active_record/attribute_assignment.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'activerecord/lib/active_record/attribute_assignment.rb') 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 permitted? method and the return value + # of this method is +false+ an ActiveModel::ForbiddenAttributesError + # 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) -- cgit v1.2.3