Sha256: 4bf24319f0756e4d77a2f1ead8a1f13de9b6eb452b1bd06875fc5ce4ac2640ee

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 Bytes

Contents

module RocketCMS
  module Models
    module Mongoid
      module ContactMessage
        extend ActiveSupport::Concern
        included do
          field :name, type: String, default: ""
          field :email, type: String, default: ""
          field :phone, type: String, default: ""
          field :content, type: String, default: ""
          RocketCMS.configuration.contacts_fields.each_pair do |fn, ft|
            next if ft.nil?
            field fn, type: ft
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ack_rocket_cms-0.7.7.1 lib/rocket_cms/models/mongoid/contact_message.rb
ack_rocket_cms-0.7.7 lib/rocket_cms/models/mongoid/contact_message.rb
ack_rocket_cms-0.7.6.4 lib/rocket_cms/models/mongoid/contact_message.rb