Skip to content

Commit 259c204

Browse files
committed
relocate author and authorable concerns
1 parent 804ebc8 commit 259c204

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/future_concerns/better_together/author_concern.rb renamed to app/models/concerns/better_together/author_concern.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ module AuthorConcern
77

88
included do
99
has_many :authorships,
10-
as: :authorable
10+
as: :author
11+
has_many :authorables,
12+
through: :authorships
1113
end
1214
end
1315
end

app/future_concerns/better_together/authorable_concern.rb renamed to app/models/concerns/better_together/authorable_concern.rb

File renamed without changes.

0 commit comments

Comments
 (0)