Permalink
Please sign in to comment.
Browse files
No need to delegate. Simply include the whole RecordIdentifier module.
- Loading branch information...
Showing
with
10 additions
and 25 deletions.
- +1 −0 actionpack/lib/abstract_controller.rb
- +2 −0 actionpack/lib/action_controller/record_identifier.rb
- +2 −0 actionpack/lib/action_dispatch.rb
- +1 −0 actionpack/lib/action_view.rb
- +0 −2 actionpack/lib/action_view/helpers.rb
- +0 −23 actionpack/lib/action_view/helpers/record_identification_helper.rb
- +4 −0 actionpack/lib/action_view/helpers/record_tag_helper.rb
@@ -1,23 +0,0 @@ | ||
-module ActionView | ||
- # = Action View Record Identification Helpers | ||
- # | ||
- # See ActionController::RecordIdentifier for documentation on these methods. | ||
- module Helpers | ||
- 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 | ||
- end | ||
-end |
0 comments on commit
c565f00