Sha256: dbeec6b36c18834be0767621fef53c3231f58d1c8f73cf96a8dea0f4eec5cd5b

Contents?: true

Size: 458 Bytes

Versions: 11

Compression:

Stored size: 458 Bytes

Contents

module Enjoy
  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.config.contacts_fields.each_pair do |fn, ft|
            next if ft.nil?
            field fn, type: ft
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
enjoy_cms-0.3.0.4 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.0.3 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.0.2 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.2.1 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.2.0.3.2 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.2.0.3.1 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.2.0.3 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.2.0.2 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.2.0.1.beta lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.2.0.beta lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.1.0.beta1 lib/enjoy/models/mongoid/contact_message.rb