mod/history/set/all/history/selected.rb in card-1.96.8 vs mod/history/set/all/history/selected.rb in card-1.97.0
- old
+ new
@@ -1,6 +1,5 @@
-
# if these aren't in a nested module, the methods just overwrite the base
# methods, but we need a distinct module so that super will be able to refer to
# the base methods.
def content
@selected_action_id ? selected_content : super
@@ -12,9 +11,10 @@
end
def select_action_by_params params
action = nth_action(params[:rev]) || action_from_id(params[:rev_id])
return unless action
+
select_action action.id
end
def select_action action_id
run_callbacks :select_action do