Class: MuckActivities::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/muck-activities/config.rb', line 23

def initialize
  self.enable_activity_comments = true     # Enable if you would like to enable comments for your project's activities feeds
  self.enable_live_activity_updates = true # Turns on polling inside the user's activity feed so they constantly get updates from the site
  self.live_activity_update_interval = 60  # Time between updates to live activity feed in seconds
                                           # Note that this will poll the server every 60 seconds and so will increase server load and bandwidth usage.
  self.enable_activity_shares = true       # Turn on shares in the activity feed

  # You can also use the 'contribute' helper method to render a richer status update if you have uploader installed and configured:
  self.enable_activity_file_uploads = true # Turn on file uploads in the activity feed.  Requires that uploader be installed.
  self.enable_activity_image_uploads = true # Turn on image uploads in the activity feed.  Requires that uploader and muck_albums be installed.
  self.enable_activity_video_sharing = true # Turn on video sharing in the activity feed.
end

Instance Attribute Details

#automatically_activateObject

Returns the value of attribute automatically_activate.



14
15
16
# File 'lib/muck-activities/config.rb', line 14

def automatically_activate
  @automatically_activate
end

#enable_activity_commentsObject

Returns the value of attribute enable_activity_comments.



15
16
17
# File 'lib/muck-activities/config.rb', line 15

def enable_activity_comments
  @enable_activity_comments
end

#enable_activity_file_uploadsObject

Returns the value of attribute enable_activity_file_uploads.



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

def enable_activity_file_uploads
  @enable_activity_file_uploads
end

#enable_activity_image_uploadsObject

Returns the value of attribute enable_activity_image_uploads.



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

def enable_activity_image_uploads
  @enable_activity_image_uploads
end

#enable_activity_sharesObject

Returns the value of attribute enable_activity_shares.



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

def enable_activity_shares
  @enable_activity_shares
end

#enable_activity_video_sharingObject

Returns the value of attribute enable_activity_video_sharing.



21
22
23
# File 'lib/muck-activities/config.rb', line 21

def enable_activity_video_sharing
  @enable_activity_video_sharing
end

#enable_live_activity_updatesObject

Returns the value of attribute enable_live_activity_updates.



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

def enable_live_activity_updates
  @enable_live_activity_updates
end

#live_activity_update_intervalObject

Returns the value of attribute live_activity_update_interval.



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

def live_activity_update_interval
  @live_activity_update_interval
end