20 lines
333 B
Ruby
20 lines
333 B
Ruby
module Mongoid
|
|
module Enum
|
|
class Configuration
|
|
attr_accessor :field_name_prefix
|
|
|
|
def initialize
|
|
self.field_name_prefix = "_"
|
|
end
|
|
end
|
|
|
|
def self.configuration
|
|
@configuration ||= Configuration.new
|
|
end
|
|
|
|
def self.configure
|
|
yield(configuration) if block_given?
|
|
end
|
|
end
|
|
end
|