Class: Infold::BuildsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Infold::BuildsController
- Defined in:
- app/controllers/infold/builds_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/infold/builds_controller.rb', line 6 def create Project.first. @build = Build.new begin @build.generate_models @build.generate_apps @build.generate_project flash.now[:info] = t('infold.flash.build_completed') rescue => e Rails.logger.fatal e flash.now[:warning] = e render status: :unprocessable_entity end end |
#new ⇒ Object
3 4 |
# File 'app/controllers/infold/builds_controller.rb', line 3 def new end |