Skip to content

Commit

Permalink
Merge 33dbc2e into ac511ba
Browse files Browse the repository at this point in the history
  • Loading branch information
malachaifrazier committed Jul 13, 2016
2 parents ac511ba + 33dbc2e commit 0dcbb9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--color
--order random
--format documentation
--require spec_helper
2 changes: 2 additions & 0 deletions lib/rails-settings/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def settings(var)
def settings=(value)
if value.nil?
setting_objects.each(&:mark_for_destruction)
elsif !self.persisted?
return
else
raise ArgumentError
end
Expand Down

0 comments on commit 0dcbb9b

Please sign in to comment.