added 'lib' to autoload_once_paths, changed folder and file names in LastFM library/module
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
@@ -1,7 +1 @@
|
||||
require 'LastFM/LastFMRequest'
|
||||
require 'LastFM/Artist'
|
||||
require 'LastFM/Album'
|
||||
require 'LastFM/Track'
|
||||
require 'LastFM/Chart'
|
||||
|
||||
LastFM::LastFMRequest::api_key = '4c32e360f68553ec8fdca3711456b4f9'
|
||||
Reference in New Issue
Block a user