Class: Backend::IssuesController

Inherits:
BaseController show all
Defined in:
app/controllers/backend/issues_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#current_theme

Instance Method Summary collapse

Methods inherited from BaseController

accounts_range_crit, crit_params, journal_entries_states_crit, journal_period_crit, journals_crit, search_conditions

Methods inherited from ApplicationController

#after_sign_in_path_for, #authorized?, human_action_name, #human_action_name

Instance Method Details

#abortObject


55
56
57
58
59
# File 'app/controllers/backend/issues_controller.rb', line 55

def abort
  return unless @issue = find_and_check
  @issue.abort if @issue.can_abort?
  redirect_to_back
end

#closeObject


49
50
51
52
53
# File 'app/controllers/backend/issues_controller.rb', line 49

def close
  return unless @issue = find_and_check
  @issue.close if @issue.can_close?
  redirect_to_back
end

#reopenObject


61
62
63
64
65
# File 'app/controllers/backend/issues_controller.rb', line 61

def reopen
  return unless @issue = find_and_check
  @issue.reopen if @issue.can_reopen?
  redirect_to_back
end