Sha256: ae05c23e0b37e29d6eb93d24c2d3e32efb894ddb34198cb4b18f910778942991

Contents?: true

Size: 342 Bytes

Versions: 12

Compression:

Stored size: 342 Bytes

Contents

module RocketCMS
  module Models
    module ActiveRecord
      module ContactMessage
        extend ActiveSupport::Concern
        included do
          has_paper_trail if respond_to?(:has_paper_trail)
          validates_lengths_from_database

          after_commit :send_notification!, on: :create
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rocket_cms-0.37.1 lib/rocket_cms/models/active_record/contact_message.rb
rocket_cms-0.37.0 lib/rocket_cms/models/active_record/contact_message.rb
rocket_cms-0.36.0 lib/rocket_cms/models/active_record/contact_message.rb
rocket_cms-0.35.0 lib/rocket_cms/models/active_record/contact_message.rb
rocket_cms-0.34.0 lib/rocket_cms/models/active_record/contact_message.rb
rocket_cms-0.33.1 lib/rocket_cms/models/active_record/contact_message.rb
rocket_cms-0.33.0 lib/rocket_cms/models/active_record/contact_message.rb
rocket_cms-0.32.0 lib/rocket_cms/models/active_record/contact_message.rb
rocket_cms-0.31.1 lib/rocket_cms/models/active_record/contact_message.rb
rocket_cms-0.31.0 lib/rocket_cms/models/active_record/contact_message.rb
rocket_cms-0.30.0 lib/rocket_cms/models/active_record/contact_message.rb
rocket_cms-0.29.0 lib/rocket_cms/models/active_record/contact_message.rb