spree/spree_store_credits — Issue #11: uninitialized constant PromotionAction
Author: lafeber
Created: 2012-02-24 12:07:57+00:00
State: open

When running bundle exec rails g spree_store_credits:install

/Users/me/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/spree_store_credits-1.0.2/app/models/promotion/actions/give_store_credit.rb:1:in `': uninitialized constant PromotionAction (NameError)
from /Users/me/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/spree_store_credits-1.0.2/lib/spree_store_credits.rb:16:in `block in '
from /Users/me/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/me/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
from /Users/me/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/me/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
from /Users/me/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/me/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
from /Users/me/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/me/Sites/klanten/ladress/config/environment.rb:5:in `'
from /Users/me/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/railties-3.1.3/lib/rails/application.rb:83:in `require_environment!'
from /Users/me/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/railties-3.1.3/lib/rails/commands.rb:22:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'

It does work for me when I prefix all the models in the gem with Spree::

How is this possible? Other gems work OOTB.