Commit da896767

mo k <mo@mokhan.ca>
2012-11-08 13:57:39
rearrage services directory and rails load paths.
1 parent 17c2a74
app/services/comment_on_creation_command.rb → app/services/commands/comment_on_creation_command.rb
File renamed without changes
app/services/display_creation_dto.rb → app/services/dto/display_creation_dto.rb
File renamed without changes
app/services/creation_to_display_creation_dto_mapper.rb → app/services/mappers/creation_to_display_creation_dto_mapper.rb
File renamed without changes
app/services/find_all_creations_query.rb → app/services/queries/find_all_creations_query.rb
File renamed without changes
config/application.rb
@@ -16,8 +16,11 @@ module Cake
     # -- all .rb files in that directory are automatically loaded.
 
     # Custom directories with classes and modules you want to be autoloadable.
-    #config.autoload_paths += %W(#{config.root}/app/services)
     config.autoload_paths += %W(#{config.root}/app/services)
+    config.autoload_paths += %W(#{config.root}/app/services/commands)
+    config.autoload_paths += %W(#{config.root}/app/services/dto)
+    config.autoload_paths += %W(#{config.root}/app/services/mappers)
+    config.autoload_paths += %W(#{config.root}/app/services/queries)
 
     # Only load the plugins named here, in the order given (default is alphabetical).
     # :all can be used as a placeholder for all plugins not explicitly named.