Sha256: 5659629ada19420490d7301d196753920eeb223d85f904cf1432537c74660697

Contents?: true

Size: 746 Bytes

Versions: 7

Compression:

Stored size: 746 Bytes

Contents

require 'social_stream-base'
require 'conference_manager-ruby'

module SocialStream
  module ToolbarConfig
    autoload :Events, 'social_stream/toolbar_config/events'
  end

  module Events
    # Add :event, :agenda, :session to SocialStream's subjects, objects and activity_forms
    # by default
    # It can be configured by users at application's config/initializers/social_stream.rb
    SocialStream.subjects.push(:event) unless SocialStream.subjects.include?(:event)

    [ :agenda, :session ].each do |o|
      SocialStream.objects.push(o) unless SocialStream.objects.include?(o)
    end
    
    SocialStream.activity_forms.push(:event) unless SocialStream.activity_forms.include?(:event)
  end
end

require 'social_stream/events/engine'

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
social_stream-0.11.0 events/lib/social_stream-events.rb
social_stream-events-0.0.8 lib/social_stream-events.rb
social_stream-0.10.4 events/lib/social_stream-events.rb
social_stream-0.10.3 events/lib/social_stream-events.rb
social_stream-events-0.0.7 lib/social_stream-events.rb
social_stream-0.10.2 events/lib/social_stream-events.rb
social_stream-events-0.0.6 lib/social_stream-events.rb