Sha256: 41ad0797dfa12c8ceff5187cbe1148b4b136c9b072dd7ca78da54efd45f506ec
Contents?: true
Size: 497 Bytes
Versions: 2
Compression:
Stored size: 497 Bytes
Contents
class Post < ActiveRecord::Base end class PostWithJacaranda < Post validates :status, inclusion: { in: %w{published unplubished draft} } acts_as_jacaranda end class PostWithJacarandaAndTitleValidation < Post validates :title, presence: true validates :status, inclusion: { in: %w{published unplubished draft} } acts_as_jacaranda end class PostWithJacarandaScoped < Post validates :status, inclusion: { in: %w{published unpublished draft} } acts_as_jacaranda scoped: true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jacaranda-0.0.2 | spec/support/models.rb |
jacaranda-0.0.1 | spec/support/models.rb |