lib/active_scaffold/actions/mark.rb in active_scaffold-3.2.15 vs lib/active_scaffold/actions/mark.rb in active_scaffold-3.2.16

- old
+ new

@@ -1,23 +1,22 @@ module ActiveScaffold::Actions module Mark def self.included(base) base.before_filter :mark_authorized?, :only => :mark - base.prepend_before_filter :assign_marked_records_to_model + base.before_filter :assign_marked_records_to_model base.helper_method :marked_records end def mark if mark? || mark_all_scope_forced? do_mark else do_demark end if marked_records.length > 0 - link = "<a href=\"#{url_for(:action=>:mark, :id=>'', :mark_target => :scope)}\" data-method=\"post\" data-remote=\"true\">#{as_ :mark_all_records}</a>" count = marked_records.length - flash[:info] = as_(:records_marked, :count => count, :model => active_scaffold_config.label(:count => count), :link => link) + flash[:info] = as_(:records_marked, :count => count, :model => active_scaffold_config.label(:count => count)) end respond_to_action(:mark) end protected