flexible_feeds 0.3.6 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTU2MWIxMGE1OWRlNjI0MzhlNjQwNmM4MjgyMTkwZjUwODAzNmViMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDIzNDM4NTYxNGU1YzQ3YzlhOWNkNTE3OTI4YjVlYTk5YTQ1NGIwNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjU2OTAxMzI3N2Q2ODM4NjdkZDEyNTU3OTgwNDAyNWEwNGVhYzY1ODcwZmFk
|
10
|
+
MDhjNTVmMWYzMzljZTg0MDZkZjJhYjEwMmZiNTAyNmY1YjM2ZmMzMTIyZTUy
|
11
|
+
ZDc4OWI0NDZlZmRjMTE2ZjVlNWYzZWFhZGRhZjZlYWQ0Njk4NjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjMwYTQzMjA1YjcxYTZiNDRiZmI5MzliY2UxN2M2MzY4NWFhMWEwMGUwNTYz
|
14
|
+
ZWY5OTAzZGFkZTZlY2ZlZDYwZGVjODQ4M2EzZTQyNzMwYWYwYWMyYjY0NmMx
|
15
|
+
Y2ZjZWE1NDgxZWNhYTBhZDgxNzMzZDhmMTgwN2IxNzJmMGYzMDY=
|
@@ -3,8 +3,6 @@ class CreateFlexibleFeedsEvents < ActiveRecord::Migration
|
|
3
3
|
create_table :flexible_feeds_events do |t|
|
4
4
|
t.string :eventable_type
|
5
5
|
t.integer :eventable_id
|
6
|
-
t.integer :creator_id
|
7
|
-
t.string :creator_type
|
8
6
|
|
9
7
|
t.integer :parent_id
|
10
8
|
t.integer :ancestor_id
|
@@ -30,8 +28,5 @@ class CreateFlexibleFeedsEvents < ActiveRecord::Migration
|
|
30
28
|
add_index :flexible_feeds_events,
|
31
29
|
[:eventable_id, :eventable_type],
|
32
30
|
name: "flexible_feeds_events_on_eventable"
|
33
|
-
add_index :flexible_feeds_events,
|
34
|
-
[:creator_id, :creator_type],
|
35
|
-
name: "flexible_feeds_events_on_creator"
|
36
31
|
end
|
37
32
|
end
|
@@ -16,9 +16,6 @@ module FlexibleFeeds
|
|
16
16
|
cattr_accessor :default_feeds
|
17
17
|
self.default_feeds = options[:add_to_feeds] || :default_custom_feeds
|
18
18
|
|
19
|
-
cattr_accessor :created_by
|
20
|
-
self.created_by = options[:created_by]
|
21
|
-
|
22
19
|
if options[:is_parent] === true
|
23
20
|
acts_as_parent
|
24
21
|
elsif options[:is_parent].present?
|
@@ -50,16 +47,12 @@ module FlexibleFeeds
|
|
50
47
|
end
|
51
48
|
|
52
49
|
private
|
53
|
-
def creator
|
54
|
-
send(created_by) if created_by.present?
|
55
|
-
end
|
56
|
-
|
57
50
|
def post_to_default_feeds
|
58
51
|
post_to_feeds(public_send(default_feeds))
|
59
52
|
end
|
60
53
|
|
61
54
|
def create_event_if_nil
|
62
|
-
create_event!
|
55
|
+
create_event! if event.nil?
|
63
56
|
end
|
64
57
|
|
65
58
|
def create_event_for(destinations)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexible_feeds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- timothycommoner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|