Class: MuckServices::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_serverObject

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_commentsObject

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_sharesObject

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_solrObject

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_sunspotObject

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_feedObject

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_serverObject

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_sideObject

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_searchObject

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