You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think a small change can simplify the implementation:
class Foo
always_has :tags => []
end
If the entry is a hash we use it's key as the attribute name and corresponding value as the default value. If it's just a symbol then we use it as only an attribute name.
for example
class Foo
always_has :tags, :default => []
end
The text was updated successfully, but these errors were encountered: