File tree 2 files changed +7
-5
lines changed
lib/public_activity/orm/active_record
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ module Activist
24
24
#
25
25
def activist
26
26
has_many :activities_as_owner ,
27
- :class_name => ":: PublicActivity::Activity" ,
28
- :as => :owner
27
+ class_name : ':: PublicActivity::Activity' ,
28
+ as : :owner
29
29
has_many :activities_as_recipient ,
30
- :class_name => ":: PublicActivity::Activity" ,
31
- :as => :recipient
30
+ class_name : ':: PublicActivity::Activity' ,
31
+ as : :recipient
32
32
end
33
33
end
34
34
end
Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ module Trackable
9
9
# Creates an association for activities where self is the *trackable*
10
10
# object.
11
11
def self . extended ( base )
12
- base . has_many :activities , :class_name => "::PublicActivity::Activity" , :as => :trackable
12
+ base . has_many :activities ,
13
+ class_name : '::PublicActivity::Activity' ,
14
+ as : :trackable
13
15
end
14
16
end
15
17
end
You can’t perform that action at this time.
0 commit comments