Sha256: 12c64f85a5ae6f6f8785419c627023713bc02d00a8922b51bf71497ef603aa42

Contents?: true

Size: 472 Bytes

Versions: 12

Compression:

Stored size: 472 Bytes

Contents

# Ensure that Spree.user_class includes the UserMethods concern
# Previously these methods were injected automatically onto the class, which we
# are still doing for compatability, but with a warning.

Spree::Core::Engine.config.to_prepare do
  if Spree.user_class && !Spree.user_class.included_modules.include?(Spree::UserMethods)
    Spree::Deprecation.warn "#{Spree.user_class} must include Spree::UserMethods"
    Spree.user_class.include Spree::UserMethods
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
solidus_core-2.0.3 config/initializers/spree_user.rb
solidus_core-1.4.2 config/initializers/spree_user.rb
solidus_core-2.0.2 config/initializers/spree_user.rb
solidus_core-1.4.1 config/initializers/spree_user.rb
solidus_core-2.0.1 config/initializers/spree_user.rb
solidus_core-2.1.0.beta1 config/initializers/spree_user.rb
solidus_core-2.0.0 config/initializers/spree_user.rb
solidus_core-1.4.0 config/initializers/spree_user.rb
solidus_core-2.0.0.rc1 config/initializers/spree_user.rb
solidus_core-1.4.0.rc1 config/initializers/spree_user.rb
solidus_core-2.0.0.beta1 config/initializers/spree_user.rb
solidus_core-1.4.0.beta1 config/initializers/spree_user.rb