Sha256: 9be82580bd219f7016da5fd11632c138b055a9615d25dccf0b8d75ae16ddb6fc

Contents?: true

Size: 1.6 KB

Versions: 16

Compression:

Stored size: 1.6 KB

Contents

# Gem's dependencies
require 'social_stream/base/dependencies'

# Social Stream's constant declarations
require 'social_stream/base/autoload'

# Provides your Rails application with social network and activity stream support
module SocialStream
  mattr_accessor :subjects
  @@subjects = [ :user, :group, :site ]

  mattr_accessor :devise_modules
  @@devise_modules = [ :database_authenticatable, :registerable, :recoverable,
                       :rememberable, :trackable, :omniauthable, :token_authenticatable]

  mattr_writer :objects
  @@objects = [ :post, :comment ]

  mattr_accessor :activity_forms
  @@activity_forms = []

  mattr_accessor :relation_model
  @@relation_model = :custom

  mattr_accessor :single_relations
  @@single_relations = [ :public, :follow, :reject ]

  mattr_accessor :suggested_models
  @@suggested_models = [ :user, :group ]

  mattr_accessor :contact_index_models
  @@contact_index_models = [ :user, :group ]

  mattr_accessor :repository_models
  @@repository_models = []

  mattr_accessor :resque_access
  @@resque_access = true
 
  mattr_accessor :quick_search_models
  @@quick_search_models = [ :user, :group, :post ]
  
  mattr_accessor :extended_search_models
  @@extended_search_models = [ :user, :group, :post, :comment ]

  mattr_accessor :cleditor_controls
  @@cleditor_controls = "bold italic underline strikethrough subscript superscript | size style | bullets | image link unlink"
 
  class << self
    def setup
      yield self
    end

    def objects
      @@objects.push(:actor) unless @@objects.include?(:actor)
      @@objects
    end
  end
end

require 'social_stream/base/engine'

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
social_stream-2.0.4 base/lib/social_stream/base.rb
social_stream-base-2.0.4 lib/social_stream/base.rb
social_stream-2.0.3 base/lib/social_stream/base.rb
social_stream-base-2.0.3 lib/social_stream/base.rb
social_stream-2.0.2 base/lib/social_stream/base.rb
social_stream-base-2.0.2 lib/social_stream/base.rb
social_stream-2.0.1 base/lib/social_stream/base.rb
social_stream-base-2.0.1 lib/social_stream/base.rb
social_stream-2.0.0 base/lib/social_stream/base.rb
social_stream-base-2.0.0 lib/social_stream/base.rb
social_stream-2.0.0.beta3 base/lib/social_stream/base.rb
social_stream-base-2.0.0.beta3 lib/social_stream/base.rb
social_stream-2.0.0.beta2 base/lib/social_stream/base.rb
social_stream-base-2.0.0.beta2 lib/social_stream/base.rb
social_stream-2.0.0.beta1 base/lib/social_stream/base.rb
social_stream-base-2.0.0.beta1 lib/social_stream/base.rb