DynamoMTL/spree_chimpy — pull request #32 by christoph-buente (2014-04-14 17:47:27+00:00)
Title: Do not override initializer value with default settings.

When a new user subscribes to the shop the value from the subscription form has been overridden by Spree::Chimpy::Config.subscribed_by_default value.

Setting chimpy subscribe by default value to false

#/config/initializers/spree_chimpy.rb
config.subscribed_by_default = false

Now initializing a new Spree::User model with given subscribed attributes is not respected:

Spree::User.new(subscribed: true)
=> #

The additional check just overrides the subscribed value if not set.