require 'pathname'

if defined? Merb::Plugins
  require Pathname(__FILE__).dirname.expand_path + 'merb_global/base'
  require Pathname(__FILE__).dirname.expand_path + 'merb_global/controller'

  Merb::Plugins.add_rakefiles 'merb_global/rake'
end

require 'pathname'

if defined? Merb::Plugins
  require Pathname(__FILE__).dirname.expand_path + 'merb_global/base'
  require Pathname(__FILE__).dirname.expand_path + 'merb_global/controller'

  Merb::Plugins.add_rakefiles(Pathname(__FILE__).dirname.expand_path + 'merb_global/merbrake')
end

Load correct file with extra rake tasks
Load correct file with extra rake tasks
