Sha256: 1624d6f6a4fd4289f21ae1be23ca48166f520d585e4b3bc4cb868caecdc74dd1

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

module Enjoy
  module Model
    extend ActiveSupport::Concern
    included do
      if Enjoy.mongoid?
        include Mongoid::Document
        include Mongoid::Timestamps::Short
      end
      
      include ActiveModel::ForbiddenAttributesProtection
      include Enjoy::BooleanField
      include Enjoy::SortField

      include SmartExcerpt
      include SimpleCaptcha::ModelHelpers

      if Enjoy.mongoid? && defined?(Trackable)
        include Trackable
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enjoy_cms-0.2.0.2 lib/enjoy/model.rb
enjoy_cms-0.2.0.1.beta lib/enjoy/model.rb
enjoy_cms-0.2.0.beta lib/enjoy/model.rb
enjoy_cms-0.1.0.beta1 lib/enjoy/model.rb