Class: Infold::BuildsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/infold/builds_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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.destroy_blank_menu_directory
  @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

#newObject



3
4
# File 'app/controllers/infold/builds_controller.rb', line 3

def new
end