Sha256: d498a99437976d4d291200dea472d7e8a0bb0c1cf8bf79d7e888f5760a9c5f8f

Contents?: true

Size: 830 Bytes

Versions: 29

Compression:

Stored size: 830 Bytes

Contents

require 'social_stream/documents/dependencies'

module SocialStream
  module ToolbarConfig
    autoload :Documents, 'social_stream/toolbar_config/documents'
  end

  module Documents
    # Add :document to SocialStream.objects and SocialStream.activity_forms by default
    # It can be configured by users at application's config/initializers/social_stream.rb
    [ :picture, :video, :audio, :document].each do |o|
    SocialStream.quick_search_models.push(o) unless SocialStream.quick_search_models.include?(o)
    SocialStream.extended_search_models.push(o) unless SocialStream.extended_search_models.include?(o)
    end
    
    %w(objects activity_forms).each do |m|
      SocialStream.__send__(m).push(:document) unless SocialStream.__send__(m).include?(:document)
    end
  end
end

require 'social_stream/documents/engine'

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
social_stream-0.23.4 documents/lib/social_stream-documents.rb
social_stream-0.23.3 documents/lib/social_stream-documents.rb
social_stream-documents-0.11.5 lib/social_stream-documents.rb
social_stream-0.23.2 documents/lib/social_stream-documents.rb
social_stream-documents-0.11.4 lib/social_stream-documents.rb
social_stream-0.23.1 documents/lib/social_stream-documents.rb
social_stream-documents-0.11.3 lib/social_stream-documents.rb
social_stream-0.22.1 documents/lib/social_stream-documents.rb
social_stream-documents-0.11.2 lib/social_stream-documents.rb
social_stream-0.22.0 documents/lib/social_stream-documents.rb
social_stream-0.21.4 documents/lib/social_stream-documents.rb
social_stream-documents-0.11.1 lib/social_stream-documents.rb
social_stream-0.21.3 documents/lib/social_stream-documents.rb
social_stream-0.21.2 documents/lib/social_stream-documents.rb
social_stream-0.21.1 documents/lib/social_stream-documents.rb
social_stream-0.21.0 documents/lib/social_stream-documents.rb
social_stream-documents-0.11.0 lib/social_stream-documents.rb
social_stream-0.20.2 documents/lib/social_stream-documents.rb
social_stream-documents-0.10.2 lib/social_stream-documents.rb
social_stream-0.20.1 documents/lib/social_stream-documents.rb