Class: MuckProfiles::Configuration
- Inherits:
-
Object
- Object
- MuckProfiles::Configuration
- Defined in:
- lib/muck-profiles/config.rb
Instance Attribute Summary collapse
-
#enable_geokit ⇒ Object
Turn geokit functionality on/off.
-
#enable_guess_location ⇒ Object
If true the profile system will attempt to determine the user’s location via IP and populated with the location, lat and lon fields.
-
#enable_solr ⇒ Object
This enables or disables acts as solr for profiles.
-
#enable_sunspot ⇒ Object
This enables or disables sunspot for profiles.
-
#policy ⇒ Object
Returns the value of attribute policy.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_geokit ⇒ Object
Turn geokit functionality on/off
18 19 20 |
# File 'lib/muck-profiles/config.rb', line 18 def enable_geokit @enable_geokit end |
#enable_guess_location ⇒ Object
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_solr ⇒ Object
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_sunspot ⇒ Object
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 |
#policy ⇒ Object
Returns the value of attribute policy.
20 21 22 |
# File 'lib/muck-profiles/config.rb', line 20 def policy @policy end |