added 'lib' to autoload_once_paths, changed folder and file names in LastFM library/module

This commit is contained in:
Thomas Buchöster
2011-05-10 22:33:31 +02:00
parent 24a4f3dc98
commit a4148486af
9 changed files with 9 additions and 14 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ module Nineminutes
# -- 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}/lib)
config.autoload_once_paths += %W(#{config.root}/lib)
# config.autoload_paths += Dir["#{config.root}/lib/LastFM/"]
# config.autoload_paths << config.root.join('lib')
-6
View File
@@ -1,7 +1 @@
require 'LastFM/LastFMRequest'
require 'LastFM/Artist'
require 'LastFM/Album'
require 'LastFM/Track'
require 'LastFM/Chart'
LastFM::LastFMRequest::api_key = '4c32e360f68553ec8fdca3711456b4f9'