From da257eb81ba1eab76ef2c1a256916193858418d4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 30 Apr 2007 01:17:56 +0000 Subject: 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 --- .../action_view/helpers/record_identification_helper.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 actionpack/lib/action_view/helpers/record_identification_helper.rb (limited to 'actionpack/lib/action_view/helpers/record_identification_helper.rb') 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 -- cgit v1.2.3