aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/record_identification_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-04-30 01:17:56 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-04-30 01:17:56 +0000
commitda257eb81ba1eab76ef2c1a256916193858418d4 (patch)
tree3b472ae6730ce177c6a496da0ea2b15ab988942d /actionpack/lib/action_view/helpers/record_identification_helper.rb
parent0dc70383097f1212fa7d9b21c57e31cfd4b7204c (diff)
downloadrails-da257eb81ba1eab76ef2c1a256916193858418d4.tar.gz
rails-da257eb81ba1eab76ef2c1a256916193858418d4.tar.bz2
rails-da257eb81ba1eab76ef2c1a256916193858418d4.zip
Added the first part of Simply Helpful to core. The rest is pending a clean integartion of polymorphic urls [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/record_identification_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/record_identification_helper.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/record_identification_helper.rb b/actionpack/lib/action_view/helpers/record_identification_helper.rb
new file mode 100644
index 0000000000..2e5ff865cc
--- /dev/null
+++ b/actionpack/lib/action_view/helpers/record_identification_helper.rb
@@ -0,0 +1,16 @@
+module RecordIdentificationHelper
+ # See ActionController::RecordIdentifier.partial_path -- this is just a delegate to that for convenient access in the view.
+ def partial_path(*args, &block)
+ ActionController::RecordIdentifier.partial_path(*args, &block)
+ end
+
+ # See ActionController::RecordIdentifier.dom_class -- this is just a delegate to that for convenient access in the view.
+ def dom_class(*args, &block)
+ ActionController::RecordIdentifier.dom_class(*args, &block)
+ end
+
+ # See ActionController::RecordIdentifier.dom_id -- this is just a delegate to that for convenient access in the view.
+ def dom_id(*args, &block)
+ ActionController::RecordIdentifier.dom_id(*args, &block)
+ end
+end \ No newline at end of file