Skip to content

Commit

Permalink
Merge pull request #1807 from jhawthorn/belongs_to_required_false
Browse files Browse the repository at this point in the history
Set belongs_to_required_by_default = false
  • Loading branch information
jhawthorn authored Mar 30, 2017
2 parents 8ef6b71 + 88b5a86 commit ebe5c47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/app/models/spree/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ class Spree::Base < ActiveRecord::Base

include Spree::RansackableAttributes

self.belongs_to_required_by_default = false

def initialize_preference_defaults
if has_attribute?(:preferences)
self.preferences = default_preferences.merge(preferences)
Expand Down

0 comments on commit ebe5c47

Please sign in to comment.