Forgot self.
This commit is contained in:
parent
8d3f4609a3
commit
ed79cb5ded
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ SQL
|
||||||
SQL
|
SQL
|
||||||
end
|
end
|
||||||
|
|
||||||
def pv_count
|
def self.pv_count
|
||||||
@pv_count ||= execute('SELECT count(*) FROM post_visibilities').to_a.first.first
|
@pv_count ||= execute('SELECT count(*) FROM post_visibilities').to_a.first.first
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue