Revert "Revert "Correction Erreur 500""
This reverts commit 16b3bbd15a.
This commit is contained in:
parent
16b3bbd15a
commit
58f1b81065
1 changed files with 4 additions and 5 deletions
|
|
@ -21,13 +21,12 @@ class Subject < ActiveRecord::Base
|
||||||
statements.map(&:public_figure).flatten
|
statements.map(&:public_figure).flatten
|
||||||
end
|
end
|
||||||
|
|
||||||
class << self
|
|
||||||
|
|
||||||
def latest_associated_public_figures
|
def latest_associated_public_figures
|
||||||
associated_public_figures.order(id: :desc).limit(5)
|
statements.map(&:public_figure).flatten.order(id: :desc).limit(5)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
def get_positions_for_public_figure(public_figure)
|
def get_positions_for_public_figure(public_figure)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue