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

- old
+ new

@@ -28,18 +28,20 @@ # 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')] -controller = File.join(app_path, 'controller', 'yaml_students.rb') +processes = [] +processes << { :process_path => File.join(app_path, 'process', 'students.rb'), + :controller_path => File.join(app_path, 'controller', + 'yaml_students.rb') } # now we changed from mock to our own controller, located in # controller/yaml_students.rb # student_core = Lorj::Core.new(nil, processes, :mock) config = Lorj::Config.new config[:connection_string] = '/tmp/students.yaml' -student_core = Lorj::Core.new(config, processes, controller) +student_core = Lorj::Core.new(config, 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'?