Browse files

I think this is a little more sane?

  • Loading branch information...
1 parent 9ea1459 commit 724ead40d74cffac6019c3c93abcdb9ec69c7a8d @jordanbyron jordanbyron committed Jan 31, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 app/models/patients_table.rb
View
7 app/models/patients_table.rb
@@ -52,9 +52,10 @@ def controls_for(patient)
#
def h
@h ||= begin
- h = ActionController::Base.helpers.extend(Haml::Helpers)
- h.init_haml_helpers
- h
+ ActionController::Base.helpers.clone.tap do |h|
+ h.extend(Haml::Helpers)
+ h.init_haml_helpers
+ end
end
end

0 comments on commit 724ead4

Please sign in to comment.