Class: MuckProfiles::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/muck-profiles/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



22
23
24
25
26
27
28
29
30
# File 'lib/muck-profiles/config.rb', line 22

def initialize
  self.enable_sunspot = false
  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

Instance Attribute Details

#enable_geokitObject

Turn geokit functionality on/off



18
19
20
# File 'lib/muck-profiles/config.rb', line 18

def enable_geokit
  @enable_geokit
end

#enable_guess_locationObject

If true the profile system will attempt to determine the user’s location via IP and populated with the location, lat and lon fields.



19
20
21
# File 'lib/muck-profiles/config.rb', line 19

def enable_guess_location
  @enable_guess_location
end

#enable_solrObject

This enables or disables acts as solr for profiles.



17
18
19
# File 'lib/muck-profiles/config.rb', line 17

def enable_solr
  @enable_solr
end

#enable_sunspotObject

This enables or disables sunspot for profiles. Only use acts_as_solr or sunspot not both. Sunspot does not include multicore support.



16
17
18
# File 'lib/muck-profiles/config.rb', line 16

def enable_sunspot
  @enable_sunspot
end

#policyObject

Returns the value of attribute policy.



20
21
22
# File 'lib/muck-profiles/config.rb', line 20

def policy
  @policy
end