- A
- B
- C
- E
- I
- M
- N
- S
- U
Source: show
# File app/controllers/issues_controller.rb, line 99 def bulk_update result = IssuesBulkUpdateContext.new(project, current_user, params).execute redirect_to :back, notice: "#{result[:count]} issues updated" end
Source: show
# File app/controllers/issues_controller.rb, line 45 def create @issue = @project.issues.new(params[:issue]) @issue.author = current_user @issue.save respond_to do |format| format.html do if @issue.valid? redirect_to project_issue_path(@project, @issue) else render :new end end format.js end end
Source: show
# File app/controllers/issues_controller.rb, line 32 def edit respond_with(@issue) end
Source: show
# File app/controllers/issues_controller.rb, line 16 def index @issues = issues_filtered @issues = @issues.page(params[:page]).per(20) respond_to do |format| format.html # index.html.erb format.js format.atom { render layout: false } end end
Source: show
# File app/controllers/issues_controller.rb, line 27 def new @issue = @project.issues.new(params[:issue]) respond_with(@issue) end
Source: show
# File app/controllers/issues_controller.rb, line 89 def search terms = params['terms'] @issues = issues_filtered @issues = @issues.where("title LIKE ?", "%#{terms}%") unless terms.blank? @issues = @issues.page(params[:page]).per(100) render partial: 'issues' end
Source: show
# File app/controllers/issues_controller.rb, line 36 def show @note = @project.notes.new(noteable: @issue) respond_to do |format| format.html format.js end end
Source: show
# File app/controllers/issues_controller.rb, line 77 def sort return render_404 unless can?(current_user, :admin_issue, @project) @issues = @project.issues.where(id: params['issue']) @issues.each do |issue| issue.position = params['issue'].index(issue.id.to_s) + 1 issue.save end render nothing: true end
Source: show
# File app/controllers/issues_controller.rb, line 62 def update @issue.update_attributes(params[:issue].merge(author_id_of_changes: current_user.id)) respond_to do |format| format.js format.html do if @issue.valid? redirect_to [@project, @issue] else render :edit end end end end
Source: show
# File app/controllers/issues_controller.rb, line 106 def issue @issue ||= @project.issues.find(params[:id]) end