From 20ea1a2adf85ef33496fda879e565f7ee72456e9 Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Tue, 30 Dec 2014 17:00:40 +0100 Subject: Tiny documentation fixes [ci skip] --- actionview/lib/action_view/record_identifier.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'actionview/lib/action_view/record_identifier.rb') 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 -- cgit v1.2.3