Sha256: 5e002893dad5b15fec269534cbde1408d578cb7d2d512a237a46f3c404a1e5f6

Contents?: true

Size: 566 Bytes

Versions: 16

Compression:

Stored size: 566 Bytes

Contents

module Enjoy
  module Models
    module Mongoid
      module ContactMessage
        extend ActiveSupport::Concern
        included do
          if defined?(RailsAdminComments)
            include RailsAdminComments::Commentable
          end

          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

16 entries across 16 versions & 1 rubygems

Version Path
enjoy_cms-0.3.7.4 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.7.3 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.7.2 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.7.1 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.7 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.6.2 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.6.1 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.6 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.5 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.4 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.3 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.2.1 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.2 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.1.2 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.1.1 lib/enjoy/models/mongoid/contact_message.rb
enjoy_cms-0.3.1 lib/enjoy/models/mongoid/contact_message.rb