Hi all,
Is there any support in Lotus::Entity for a default values of attributes ? Similar to Virtus gem ?
Something like:
# default from a singleton value (boolean in this case)
attribute :published, :default => false`
Thanks!
Hi all,
Is there any support in Lotus::Entity for a default values of attributes ? Similar to Virtus gem ?
Something like:
# default from a singleton value (boolean in this case)
attribute :published, :default => false`
Thanks!
I think I found the responde to my question: Lotus::Validations + this thread