Opened an issue. https://github.com/spree/spree/issues/2824.

I think my app is the issue.

*Weston Platter | **westonplatter@gmail.com | google voice** - 408.657.8090*

On Thu, Apr 4, 2013 at 7:38 PM, Ryan Bigg wrote:

Could you please file an issue for this on
https://github.com/spree/spree/issues?

On Fri, Apr 5, 2013 at 3:35 AM, Weston Platter wrote:

I upgraded Spree from 1.0.0.beta to 1.2.4.

I open class the Spree::Taxon class to add an ActiveRecord::Relationship,

Spree::Taxon.class_eval do
has_one :hinda_category, class_name: 'HindaCategory', foreign_key:
'spree_taxon_id'
end

The rails env bombs out with this error,

rake aborted!
uninitialized constant Spree::Config
/Users/weston/.rvm/gems/ruby-1.9.3-p194@novu/gems/spree_core-1.2.4/lib/spree/core/s3_support.rb:11:in `supports_s3'
/Users/weston/.rvm/gems/ruby-1.9.3-p194@novu/gems/spree_core-1.2.4/app/models/spree/taxon.rb:22:in `<class:Taxon>'
/Users/weston/.rvm/gems/ruby-1.9.3-p194@novu/gems/spree_core-1.2.4/app/models/spree/taxon.rb:2:in `<module:Spree>'
/Users/weston/.rvm/gems/ruby-1.9.3-p194@novu/gems/spree_core-1.2.4/app/models/spree/taxon.rb:1:in `<top (required)>'
/Users/weston/novu/spree/app/models/spree/taxon_decorator.rb:1:in `<top (required)>'
/Users/weston/novu/spree/config/application.rb:62:in `block (2 levels) in <class:Application>'
/Users/weston/novu/spree/config/application.rb:61:in `glob'
/Users/weston/novu/spree/config/application.rb:61:in `block in <class:Application>'

Spree::Config is defined here, https://github.com/spree/spree/blob/1-2-stable/core/lib/spree/core/engine.rb#L39.

Why is Spree::Config not defined?

--
Don't miss SpreeConf on May 20-21: http://spreeconf.com
Spree is hiring: http://spreecommerce.com/careers

--
Don't miss SpreeConf on May 20-21: http://spreeconf.com
Spree is hiring: http://spreecommerce.com/careers

--
Don't miss SpreeConf on May 20-21: http://spreeconf.com
Spree is hiring: http://spreecommerce.com/careers

Search Discussions

  • Weston Platter at Apr 8, 2013 at 8:58 pm
    Just in case anyone else runs into this issue, auto_reload gem caused the
    issue.

    More info here,
    https://github.com/spree/spree/issues/2824#issuecomment-16075046
    On Friday, April 5, 2013 1:37:48 AM UTC-5, Weston Platter wrote:

    Opened an issue. https://github.com/spree/spree/issues/2824.

    I think my app is the issue.

    *Weston Platter | **westonplatter@gmail.com | google voice** -
    408.657.8090*

    On Thu, Apr 4, 2013 at 7:38 PM, Ryan Bigg wrote:

    Could you please file an issue for this on
    https://github.com/spree/spree/issues?

    On Fri, Apr 5, 2013 at 3:35 AM, Weston Platter wrote:

    I upgraded Spree from 1.0.0.beta to 1.2.4.

    I open class the Spree::Taxon class to add an
    ActiveRecord::Relationship,

    Spree::Taxon.class_eval do
    has_one :hinda_category, class_name: 'HindaCategory', foreign_key:
    'spree_taxon_id'
    end

    The rails env bombs out with this error,

    rake aborted!
    uninitialized constant Spree::Config
    /Users/weston/.rvm/gems/ruby-1.9.3-p194@novu/gems/spree_core-1.2.4/lib/spree/core/s3_support.rb:11:in `supports_s3'

    /Users/weston/.rvm/gems/ruby-1.9.3-p194@novu/gems/spree_core-1.2.4/app/models/spree/taxon.rb:22:in `<class:Taxon>'

    /Users/weston/.rvm/gems/ruby-1.9.3-p194@novu/gems/spree_core-1.2.4/app/models/spree/taxon.rb:2:in `<module:Spree>'
    /Users/weston/.rvm/gems/ruby-1.9.3-p194@novu/gems/spree_core-1.2.4/app/models/spree/taxon.rb:1:in `<top (required)>'

    /Users/weston/novu/spree/app/models/spree/taxon_decorator.rb:1:in `<top (required)>'

    /Users/weston/novu/spree/config/application.rb:62:in `block (2 levels) in <class:Application>'
    /Users/weston/novu/spree/config/application.rb:61:in `glob'

    /Users/weston/novu/spree/config/application.rb:61:in `block in <class:Application>'

    Spree::Config is defined here, https://github.com/spree/spree/blob/1-2-stable/core/lib/spree/core/engine.rb#L39.

    Why is Spree::Config not defined?

    --
    Don't miss SpreeConf on May 20-21: http://spreeconf.com
    Spree is hiring: http://spreecommerce.com/careers

    --
    Don't miss SpreeConf on May 20-21: http://spreeconf.com
    Spree is hiring: http://spreecommerce.com/careers

    --
    Don't miss SpreeConf on May 20-21: http://spreeconf.com
    Spree is hiring: http://spreecommerce.com/careers

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedApr 5, '13 at 6:37a
activeApr 8, '13 at 8:58p
posts2
users1
websitespreecommerce.com
irc#RubyOnRails

1 user in discussion

Weston Platter: 2 posts

People

Translate

site design / logo © 2022 Grokbase