Commit 90e11fb2 authored by http://jneen.net/'s avatar http://jneen.net/

allow internal attributes to have a nil value

parent 00cf529a
...@@ -367,7 +367,7 @@ class User < ActiveRecord::Base ...@@ -367,7 +367,7 @@ class User < ActiveRecord::Base
end end
def self.non_internal def self.non_internal
where(Hash[internal_attributes.zip([false] * internal_attributes.size)]) where(Hash[internal_attributes.zip([[false, nil]] * internal_attributes.size)])
end end
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment