aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorPavel Gorbokon <pahanix@gmail.com>2010-06-11 03:09:27 +0300
committerPavel Gorbokon <pahanix@gmail.com>2010-06-11 03:09:27 +0300
commit835fd07b48da7a753a1f22b3889d611946234349 (patch)
treed0ddb45d4f9e48b1a5fc5e7a5f871c6863a10047 /activemodel
parent63560660062d552d6bbebec007154f0c639bf865 (diff)
downloadrails-835fd07b48da7a753a1f22b3889d611946234349.tar.gz
rails-835fd07b48da7a753a1f22b3889d611946234349.tar.bz2
rails-835fd07b48da7a753a1f22b3889d611946234349.zip
Fix spelling error in ActiveModel::Conversion docs. [#4826 state:resolved]
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/conversion.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/conversion.rb b/activemodel/lib/active_model/conversion.rb
index 585c20dcdf..23724b2d95 100644
--- a/activemodel/lib/active_model/conversion.rb
+++ b/activemodel/lib/active_model/conversion.rb
@@ -30,7 +30,7 @@ module ActiveModel
self
end
- # Returns an Enumerable of all (primary) key attributes or nil if persisted? is fakse
+ # Returns an Enumerable of all (primary) key attributes or nil if persisted? is false
def to_key
persisted? ? [id] : nil
end