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-documents-0.10.1 lib/social_stream-documents.rb
social_stream-0.20.0 documents/lib/social_stream-documents.rb
social_stream-documents-0.10.0 lib/social_stream-documents.rb
social_stream-0.19.3 documents/lib/social_stream-documents.rb
social_stream-documents-0.9.1 lib/social_stream-documents.rb
social_stream-0.19.2 documents/lib/social_stream-documents.rb
social_stream-0.19.1 documents/lib/social_stream-documents.rb
social_stream-0.19.0 documents/lib/social_stream-documents.rb
social_stream-documents-0.9.0 lib/social_stream-documents.rb