social_stream-base 0.21.1 → 0.21.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,6 @@
1
1
  class ObjectChannelsToActions < ActiveRecord::Migration
2
+ class Channel < ActiveRecord::Base; end
3
+
2
4
  def up
3
5
  add_column :activity_actions, :author, :boolean, :default => false
4
6
  add_column :activity_actions, :user_author, :boolean, :default => false
@@ -25,6 +25,10 @@ module SocialStream
25
25
  end
26
26
  end
27
27
 
28
+ initializer "social_stream-base.model.load_single_relations" do
29
+ SocialStream.single_relations.each{ |r| "Relation::#{ r.to_s.classify }".constantize }
30
+ end
31
+
28
32
  initializer "social_stream-base.controller.helpers" do
29
33
  ActiveSupport.on_load(:action_controller) do
30
34
  include SocialStream::Controllers::Helpers
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Base
3
- VERSION = "0.21.1".freeze
3
+ VERSION = "0.21.2".freeze
4
4
  end
5
5
  end
@@ -79,6 +79,9 @@ module SocialStream
79
79
  mattr_accessor :relation_model
80
80
  @@relation_model = :custom
81
81
 
82
+ mattr_accessor :single_relations
83
+ @@single_relations = [ :public, :follow, :reject ]
84
+
82
85
  mattr_accessor :resque_access
83
86
  @@resque_access = true
84
87
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.1
4
+ version: 0.21.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-06-06 00:00:00.000000000 Z
13
+ date: 2012-06-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: deep_merge