Skip to content

Commit

Permalink
Improve code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ur5us committed Feb 14, 2024
1 parent 00ccd41 commit d2952cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/public_activity/orm/active_record/activist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ module Activist
#
def activist
has_many :activities_as_owner,
:class_name => "::PublicActivity::Activity",
:as => :owner
class_name: '::PublicActivity::Activity',
as: :owner
has_many :activities_as_recipient,
:class_name => "::PublicActivity::Activity",
:as => :recipient
class_name: '::PublicActivity::Activity',
as: :recipient
end
end
end
Expand Down
4 changes: 3 additions & 1 deletion lib/public_activity/orm/active_record/trackable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ module Trackable
# Creates an association for activities where self is the *trackable*
# object.
def self.extended(base)
base.has_many :activities, :class_name => "::PublicActivity::Activity", :as => :trackable
base.has_many :activities,
class_name: '::PublicActivity::Activity',
as: :trackable
end
end
end
Expand Down

0 comments on commit d2952cf

Please sign in to comment.