example/students_2/students.rb in lorj-1.0.9 vs example/students_2/students.rb in lorj-1.0.10

- old
+ new

@@ -28,13 +28,15 @@ # settings. # PrcLib.level = Logger::DEBUG # Printed out to your console. # PrcLib.core_level = 3 # framework debug levels. # Initialize the framework -processes = [File.join(app_path, 'process', 'students.rb')] +processes = [] +processes << { :process_path => File.join(app_path, 'process', 'students.rb'), + :controller_name => :mock } # byebug if ENV['BYEBUG'] # rubocop: disable Debugger -student_core = Lorj::Core.new(nil, processes, :mock) +student_core = Lorj::Core.new(nil, processes) # Ask the framework to create the object student 'Robert Redford' student_core.create(:student, :student_name => 'Robert Redford') # Want to create a duplicated student 'Robert Redford'? student_core.create(:student, :student_name => 'Robert Redford')