about summary refs log tree commit diff
path: root/app/presenters
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-02-21 19:50:12 +0100
committerGitHub <noreply@github.com>2021-02-21 19:50:12 +0100
commit8331fdf7e0ea85ecc6d7dbff00b784bb6aa1f7d4 (patch)
tree044e1475cb6e31c5c33d02a4220c95f080667c59 /app/presenters
parentdcc7c686f3c4c85ebb8a3e6d5a861fc530c1840d (diff)
Add server rules (#15769)
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/instance_presenter.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb
index 1bfdd40ac..8cd774abe 100644
--- a/app/presenters/instance_presenter.rb
+++ b/app/presenters/instance_presenter.rb
@@ -16,6 +16,10 @@ class InstancePresenter
     Account.find_local(Setting.site_contact_username.strip.gsub(/\A@/, ''))
   end
 
+  def rules
+    Rule.ordered
+  end
+
   def user_count
     Rails.cache.fetch('user_count') { User.confirmed.joins(:account).merge(Account.without_suspended).count }
   end