Sha256: d660f4b77f5c9fd322d0ce782b89d83482c030667a3ce7be3e264fbefe7ec1e7

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

require 'mongoid-preferences/preferences/preferenceable'
require 'mongoid-preferences/preferences/version'

module Mongoid
  module Preferences
    include ActiveSupport::Configurable
    config_accessor :model_preferences_path
  end
end

###
# Use this code into an initializer for configure the path of preferences yaml
##

#Mongoid::Preferences.configure do |config|
#  # set default preferences path
#  config.model_preferences_path = Rails.root.join('app','models_preferences')
#end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-preferences-0.0.4 lib/mongoid-preferences/preferences.rb
mongoid-preferences-0.0.3 lib/mongoid-preferences/preferences.rb
mongoid-preferences-0.0.2 lib/mongoid-preferences/preferences.rb