dcrec1 / acts_as_solr_reloaded

ActsAsSolr with new features
http://www.diegocarrion.com
MIT License
102 stars 30 forks source link

Rake tasks not loaded in gem mode. #5

Closed romul closed 14 years ago

romul commented 14 years ago

Looks like it was buggy commit: http://github.com/dcrec1/acts_as_solr_reloaded/commit/90edee12101e0c8820725470fc1829b3e25988f9

Earlier we could just add simple task with line require "acts_as_solr/tasks" for now it doesn't work.

romul commented 14 years ago

Error message:

rake aborted!
Don't know how to build task 'solr:start'
romul commented 14 years ago

Workaround:

Gem.path.each do |gem_path|
  Dir["#{gem_path}/gems/acts_as_solr_reloaded-1.4.0/lib/tasks/*.rake"].sort.each { |ext| load ext }
end
dcrec1 commented 14 years ago

Hi Roman, now you can execute:

require 'acts_as_solr_reloaded' load 'tasks/solr.rake'

I know its more complicated than before, will try to simplify this.

romul commented 14 years ago

Thank you. It works.