Sha256: d72e3cb8dcf8353f9696af41ab3672e0ea7ac5bd7b540a9b907bc497f0d7220b
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
module Tasks module Concerns::Models::Taskables::Verification extend ActiveSupport::Concern included do include ::Tasks::Taskables::Taskable belongs_to :verifiable, polymorphic: true has_many :confirmations, dependent: :destroy validates :verifiable_id, allow_blank: true, uniqueness: { scope: [:verifiable_type] } responses are: :confirmations def to_s verifiable.to_s end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tasuku-0.0.1 | lib/tasks/concerns/models/taskables/verification.rb |