Skip to content

Commit

Permalink
Fixed problem in rakefile when running from a plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Heidel authored and parndt committed Jan 25, 2010
1 parent 84e0ad4 commit e6cf54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extra_rake_tasks = []
# When running Refinery from a gem we lose the rake tasks, so add them back in:
extra_rake_tasks << Dir[File.join(REFINERY_ROOT, %w(vendor plugins * ** tasks ** *.rake))].sort unless REFINERY_ROOT == RAILS_ROOT
# We also need to load in the rake tasks from gem plugins whether Refinery is a gem or not:
extra_rake_tasks << $refinery_gem_plugin_lib_paths.collect {|path| Dir[File.join(%W(#{path} tasks ** *.rake))].sort}
extra_rake_tasks << $refinery_gem_plugin_lib_paths.collect {|path| Dir[File.join(%W(#{path} tasks ** *.rake))].sort} if defined?($refinery_gem_plugin_lib_paths) && !$refinery_gem_plugin_lib_paths.nil?
extra_rake_tasks.flatten.compact.uniq.each {|rake| load rake }

desc 'Removes trailing whitespace'
Expand Down

0 comments on commit e6cf54e

Please sign in to comment.