lib/tramway/user.rb in tramway-user-0.1.0 vs lib/tramway/user.rb in tramway-user-1.0
- old
+ new
@@ -1,11 +1,28 @@
-require 'active_record'
-require 'tramway/user/user'
-require 'tramway/user/version'
-require 'tramway/user/generators'
+require 'tramway/user/engine'
+require 'tramway/user/generators/install_generator'
module Tramway
- include Tramway::Core
-
module User
+ class << self
+ def root
+ File.dirname __dir__
+ end
+
+ def layout_path=(path)
+ @layout_path = path
+ end
+
+ def layout_path
+ @layout_path ||= 'tramway/user/application'
+ end
+
+ def root_path=(path)
+ @root_path = path
+ end
+
+ def root_path
+ @root_path
+ end
+ end
end
end