Sha256: ab7a88eb100fc5fc48e36cad62b25cb8e14b4707cc17fa7121982ff34153706e
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
require 'ostruct' module MuckProfiles def self.configuration # In case the user doesn't setup a configure block we can always return default settings: @configuration ||= Configuration.new end def self.configure self.configuration ||= Configuration.new yield(configuration) end class Configuration attr_accessor :enable_solr # This enables or disables acts as solr for profiles. attr_accessor :enable_geokit # Turn geokit functionality on/off attr_accessor :enable_guess_location # If true the profile system will attempt to determine the user's location via IP and populated with the location, lat and lon fields. attr_accessor :policy def initialize self.enable_solr = true self.enable_guess_location = true self.policy = { :public => [:login, :first_name, :last_name, :about], :authenticated => [:location, :city, :state_id, :country_id, :language_id], :friends => [:email], :private => [] } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
muck-profiles-3.0.1 | lib/muck-profiles/config.rb |
muck-profiles-3.0.0 | lib/muck_profiles/config.rb |