Module: ProjectRemoteIssuesController::Create
- Extended by:
- ActiveSupport::Concern
- Included in:
- ProjectRemoteIssuesController
- Defined in:
- app/controllers/project_remote_issues_controller/create.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'app/controllers/project_remote_issues_controller/create.rb', line 15 def create @add_issue = create_model_class.new(create_params) if @add_issue.save flash[:notice] = "Demanda salva: ##{@add_issue.local_issue.id}" redirect_to url_for(action: 'index', id: @project.identifier, tracker_id: @remote_tracker.id) else render 'new' end end |
#new ⇒ Object
11 12 13 |
# File 'app/controllers/project_remote_issues_controller/create.rb', line 11 def new @add_issue = create_model_class.new(context_params) end |