diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-05 22:30:30 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-05 22:30:30 +0530 |
commit | 163258ba2a7ff325cb79d70a1ad15aeb3d270e28 (patch) | |
tree | 21f0eec09b41561767dbf1965840734c27776c4a /actionpack/lib/action_controller | |
parent | 64462039c01329e8d43f7ffb9076cecbc430a8e6 (diff) | |
parent | 16512704fcb7b32ae34256fd2cfee4bec52dfc10 (diff) | |
download | rails-163258ba2a7ff325cb79d70a1ad15aeb3d270e28.tar.gz rails-163258ba2a7ff325cb79d70a1ad15aeb3d270e28.tar.bz2 rails-163258ba2a7ff325cb79d70a1ad15aeb3d270e28.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/record_identifier.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/record_identifier.rb b/actionpack/lib/action_controller/record_identifier.rb index 18dda978b3..5c40889f6b 100644 --- a/actionpack/lib/action_controller/record_identifier.rb +++ b/actionpack/lib/action_controller/record_identifier.rb @@ -53,6 +53,7 @@ module ActionController # If you need to address multiple instances of the same class in the same view, you can prefix the dom_id: # # dom_id(Post.find(45), :edit) # => "edit_post_45" + # dom_id(Post.new, :custom) # => "custom_post" def dom_id(record, prefix = nil) if record_id = record_key_for_dom_id(record) "#{dom_class(record, prefix)}#{JOIN}#{record_id}" |