lib/mongoid-preferences/preferences/preferenceable.rb in mongoid-preferences-0.0.3 vs lib/mongoid-preferences/preferences/preferenceable.rb in mongoid-preferences-0.0.4
- old
+ new
@@ -51,10 +51,10 @@
end
private
def load_preferences
- if read_attribute(:preferences).empty?
+ if read_attribute(:preferences).blank?
write_attribute(:preferences, preferences)
end
end
# Returns a hash of default preferences loaded from file
\ No newline at end of file