Sha256: a3231fdfc84a91cd51482220269cfdbc1ed58b3a4c46109bd0d6e0361db650e8

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

module Hipbot
  module Storages
    module Mongoid
      extend ActiveSupport::Concern

      included do
        include ::Mongoid::Document

        field :_id,  type: String
        field :name, type: String

        alias_method :to_s, :name

        validates :name, presence: true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hipbot-1.0.4 lib/hipbot/storages/mongoid.rb