social_stream 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/group.rb +0 -8
- data/app/models/user.rb +1 -1
- data/lib/social_stream/models/actor.rb +4 -0
- data/lib/social_stream/version.rb +1 -1
- metadata +3 -3
data/app/models/group.rb
CHANGED
data/app/models/user.rb
CHANGED
@@ -6,7 +6,7 @@ class User < ActiveRecord::Base
|
|
6
6
|
# Setup accessible (or protected) attributes for your model
|
7
7
|
attr_accessible :name, :email, :password, :password_confirmation, :remember_me
|
8
8
|
|
9
|
-
validates_presence_of :
|
9
|
+
validates_presence_of :email
|
10
10
|
validates_format_of :email, :with => Devise.email_regexp, :allow_blank => true
|
11
11
|
# TODO: uniqueness of email, which is in actor
|
12
12
|
|
@@ -24,6 +24,10 @@ module SocialStream
|
|
24
24
|
:to => :actor!
|
25
25
|
|
26
26
|
|
27
|
+
validates_presence_of :name
|
28
|
+
|
29
|
+
scope :alphabetic, includes(:actor).order('actors.name')
|
30
|
+
|
27
31
|
scope :with_sent_ties, joins(:actor => :sent_ties)
|
28
32
|
scope :with_received_ties, joins(:actor => :received_ties)
|
29
33
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Antonio Tapiador
|