aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-07-21 11:46:38 +0200
committerJosé Valim <jose.valim@gmail.com>2010-07-21 11:46:38 +0200
commitc565f0060aab85db60390220679c5df419998f9e (patch)
tree528ef0104573168090546ad81ee46470680f5a61 /actionpack/lib/action_controller
parent6807b080996ee4bd6b80abb4f5e9964632c421c8 (diff)
downloadrails-c565f0060aab85db60390220679c5df419998f9e.tar.gz
rails-c565f0060aab85db60390220679c5df419998f9e.tar.bz2
rails-c565f0060aab85db60390220679c5df419998f9e.zip
No need to delegate. Simply include the whole RecordIdentifier module.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/record_identifier.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/record_identifier.rb b/actionpack/lib/action_controller/record_identifier.rb
index 975b03c0c9..3de40b0de3 100644
--- a/actionpack/lib/action_controller/record_identifier.rb
+++ b/actionpack/lib/action_controller/record_identifier.rb
@@ -67,6 +67,8 @@ module ActionController
end
end
+ protected
+
# Returns a string representation of the key attribute(s) that is suitable for use in an HTML DOM id.
# This can be overwritten to customize the default generated string representation if desired.
# If you need to read back a key from a dom_id in order to query for the underlying database record,