aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/record_identifier.rb
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2014-12-30 17:00:40 +0100
committerRobin Dupret <robin.dupret@gmail.com>2014-12-30 17:00:40 +0100
commit20ea1a2adf85ef33496fda879e565f7ee72456e9 (patch)
tree2966330e14f789be9bca4105bb097c5a0617c179 /actionview/lib/action_view/record_identifier.rb
parent0c937b6d1ef2a1d6765cdf9789a72e3dc70e23e8 (diff)
downloadrails-20ea1a2adf85ef33496fda879e565f7ee72456e9.tar.gz
rails-20ea1a2adf85ef33496fda879e565f7ee72456e9.tar.bz2
rails-20ea1a2adf85ef33496fda879e565f7ee72456e9.zip
Tiny documentation fixes [ci skip]
Diffstat (limited to 'actionview/lib/action_view/record_identifier.rb')
-rw-r--r--actionview/lib/action_view/record_identifier.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/actionview/lib/action_view/record_identifier.rb b/actionview/lib/action_view/record_identifier.rb
index 818a60103f..c8484bed34 100644
--- a/actionview/lib/action_view/record_identifier.rb
+++ b/actionview/lib/action_view/record_identifier.rb
@@ -35,8 +35,9 @@ module ActionView
#
# Note that these methods do not strictly require +Post+ to be a subclass of
# ActiveRecord::Base.
- # Any +Post+ class will do as long as its instances respond to +post.to_key+
- # and +post.model_name.param_key+; for instance:
+ # Any +Post+ class will work as long as its instances respond to +to_key+
+ # and +model_name+, given that +model_name+ responds to +param_key+.
+ # For instance:
#
# class Post
# attr_accessor :to_key
@@ -46,7 +47,7 @@ module ActionView
# end
#
# def self.find(id)
- # new.tap{|post| post.to_key = [id]}
+ # new.tap { |post| post.to_key = [id] }
# end
# end
module RecordIdentifier