Renamed the directory yast to ya_st and autoload works!
authorMartin Vidner <mvidner@suse.cz>
Mon, 12 Oct 2009 11:40:58 +0000 (13:40 +0200)
committerMartin Vidner <mvidner@suse.cz>
Mon, 12 Oct 2009 12:23:20 +0000 (14:23 +0200)
commit5db13ecfda595fd414fcd0b647363bcdcd250ff9
treebfeea1453a4e82e1a9a3ee87046981b42aabca8f
parent4fc0564273175c7ed0058b4cd8ea77cb7e6fb8dd
Renamed the directory yast to ya_st and autoload works!

It is because:
  ActiveSupport::Inflector.underscore("YaST")== "ya_st"
The converse does not hold but hopefully it does not matter:
  ActiveSupport::Inflector.camelize("ya_st") == "YaSt"

BTW the automatic removal of the require was done by
  find -name \*rb | xargs grep -l 'require.*yast/' |xargs sed -i -e '\,require.*yast/,d' -e '/./,$!d'
(thanks to http://sed.sourceforge.net/sedfaq3.html#s3.2 )
33 files changed:
plugins/administrator/app/controllers/administrator_controller.rb
plugins/custom_services/app/controllers/custom_services_controller.rb
plugins/language/app/controllers/language_controller.rb
plugins/mail_settings/app/controllers/mail_settings_controller.rb
plugins/network/app/controllers/network_controller.rb
plugins/patch_updates/app/controllers/patch_updates_controller.rb
plugins/permissions/app/controllers/permissions_controller.rb
plugins/samba_server/app/controllers/samba_server_controller.rb
plugins/security/app/controllers/security_controller.rb
plugins/services/app/controllers/services_controller.rb
plugins/status/app/controllers/status_controller.rb
plugins/status/app/models/status.rb
plugins/systemtime/app/controllers/systemtime_controller.rb
plugins/users/app/controllers/users_controller.rb
plugins/users/app/models/user.rb
webclient/app/controllers/sessions_controller.rb
webclient/app/models/account.rb
webclient/app/models/ya_st/service_resource/login.rb [new file with mode: 0644]
webclient/app/models/ya_st/service_resource/logout.rb [new file with mode: 0644]
webclient/app/models/yast/service_resource/login.rb [deleted file]
webclient/app/models/yast/service_resource/logout.rb [deleted file]
webclient/config/environment.rb
webclient/lib/ya_st/rack/static_overlay.rb [new file with mode: 0644]
webclient/lib/ya_st/service_resource.rb [new file with mode: 0644]
webclient/lib/ya_st/service_resource/base.rb [new file with mode: 0644]
webclient/lib/ya_st/service_resource/interface_resource.rb [new file with mode: 0644]
webclient/lib/ya_st/service_resource/permission.rb [new file with mode: 0644]
webclient/lib/yast/rack/static_overlay.rb [deleted file]
webclient/lib/yast/service_resource.rb [deleted file]
webclient/lib/yast/service_resource/base.rb [deleted file]
webclient/lib/yast/service_resource/interface_resource.rb [deleted file]
webclient/lib/yast/service_resource/permission.rb [deleted file]
webclient/test/unit/yast/service_resource_test.rb