Class: MuckServices::Configuration
- Inherits:
-
Object
- Object
- MuckServices::Configuration
- Defined in:
- lib/muck-services/config.rb
Instance Attribute Summary collapse
-
#combine_feeds_on_server ⇒ Object
Combines feeds loaded on the server.
-
#enable_services_comments ⇒ Object
Returns the value of attribute enable_services_comments.
-
#enable_services_shares ⇒ Object
Returns the value of attribute enable_services_shares.
-
#enable_solr ⇒ Object
This enables or disables acts as solr.
-
#enable_sunspot ⇒ Object
This enables or disables sunspot.
-
#inform_admin_of_global_feed ⇒ Object
Returns the value of attribute inform_admin_of_global_feed.
-
#load_feeds_on_server ⇒ Object
Determines whether feeds on a topic page are loaded on the server or the client.
-
#render_feeds_client_side ⇒ Object
Returns the value of attribute render_feeds_client_side.
-
#show_google_search ⇒ Object
Determines whether or not a google search is displayed on the topic page.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/muck-services/config.rb', line 27 def initialize self.enable_services_shares = true self.inform_admin_of_global_feed = true self.enable_services_comments = true self.render_feeds_client_side = true self.show_google_search = true self.combine_feeds_on_server = false self.load_feeds_on_server = false self.enable_sunspot = false self.enable_solr = false end |
Instance Attribute Details
#combine_feeds_on_server ⇒ Object
Combines feeds loaded on the server
22 23 24 |
# File 'lib/muck-services/config.rb', line 22 def combine_feeds_on_server @combine_feeds_on_server end |
#enable_services_comments ⇒ Object
Returns the value of attribute enable_services_comments.
19 20 21 |
# File 'lib/muck-services/config.rb', line 19 def enable_services_comments @enable_services_comments end |
#enable_services_shares ⇒ Object
Returns the value of attribute enable_services_shares.
17 18 19 |
# File 'lib/muck-services/config.rb', line 17 def enable_services_shares @enable_services_shares end |
#enable_solr ⇒ Object
This enables or disables acts as solr.
25 26 27 |
# File 'lib/muck-services/config.rb', line 25 def enable_solr @enable_solr end |
#enable_sunspot ⇒ Object
This enables or disables sunspot. Only use acts_as_solr or sunspot not both. Sunspot does not include multicore support.
24 25 26 |
# File 'lib/muck-services/config.rb', line 24 def enable_sunspot @enable_sunspot end |
#inform_admin_of_global_feed ⇒ Object
Returns the value of attribute inform_admin_of_global_feed.
18 19 20 |
# File 'lib/muck-services/config.rb', line 18 def inform_admin_of_global_feed @inform_admin_of_global_feed end |
#load_feeds_on_server ⇒ Object
Determines whether feeds on a topic page are loaded on the server or the client. Loading on the server can take a while
23 24 25 |
# File 'lib/muck-services/config.rb', line 23 def load_feeds_on_server @load_feeds_on_server end |
#render_feeds_client_side ⇒ Object
Returns the value of attribute render_feeds_client_side.
20 21 22 |
# File 'lib/muck-services/config.rb', line 20 def render_feeds_client_side @render_feeds_client_side end |
#show_google_search ⇒ Object
Determines whether or not a google search is displayed on the topic page
21 22 23 |
# File 'lib/muck-services/config.rb', line 21 def show_google_search @show_google_search end |