lib/merb-parts/part_controller.rb in merb-parts-0.9.4 vs lib/merb-parts/part_controller.rb in merb-parts-0.9.5
- old
+ new
@@ -77,9 +77,10 @@
# action<~to_s>:: An action to dispatch to. Defaults to :to_s.
#
# ==== Returns
# String:: The part body.
def _dispatch(action=:to_s)
+ action = action.to_s
self.action_name = action
super(action)
@body
end