Sha256: 78c1d17ac08621a764fc3bac6d78a56afe16b70b8c269f5f4bed54a4661ef914

Contents?: true

Size: 468 Bytes

Versions: 3

Compression:

Stored size: 468 Bytes

Contents

module Enjoy::Feedback
  module Models
    module Mongoid
      module ContactMessage
        extend ActiveSupport::Concern
        included do
          field :name, type: String
          field :email, type: String
          field :phone, type: String
          field :content, type: String
          Enjoy::Feedback.config.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
enjoy_cms_feedback-0.4.1 lib/enjoy/feedback/models/mongoid/contact_message.rb
enjoy_cms_feedback-0.4.0 lib/enjoy/feedback/models/mongoid/contact_message.rb
enjoy_cms_feedback-0.4.0.beta3 lib/enjoy/feedback/models/mongoid/contact_message.rb