mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 11:04:42 +08:00
Merge pull request #300 from goshakkk/cleanup
Minor cleanup, using AR querying DSL over raw SQL in some places
This commit is contained in:
@ -162,4 +162,7 @@ class SiteSetting < ActiveRecord::Base
|
||||
min_topic_title_length..max_topic_title_length
|
||||
end
|
||||
|
||||
def self.post_length
|
||||
min_post_length..max_post_length
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user