Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix double gtkmain

  • Loading branch information...
commit 0fff9a02717dfa3ee95095b73c27571e0c975a52 1 parent f2e1a75
andrea@VEGETA authored
Showing with 13 additions and 1 deletion.
  1. +1 −1  lib/freightrain.rb
  2. +12 −0 lib/freightrain/auto_requirer.rb
View
2  lib/freightrain.rb
@@ -10,7 +10,7 @@ module Freightrain
attr_accessor :app_path
def self.start(viewmodel)
- require_all @app_path
+ auto_require!
configure_container!
viewmodel.new.show
Gtk.main
View
12 lib/freightrain/auto_requirer.rb
@@ -0,0 +1,12 @@
+
+module Freightrain
+
+ def self.auto_require!
+
+ require_all File.join(self.app_path, "views")
+ require_all File.join(self.app_path, "viewmodels")
+ require_all File.join(self.app_path, "services")
+ require_all File.join(self.app_path, "domain")
+
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.