module Danbooru class CustomConfiguration < Configuration # Define your custom overloads here def app_name "f" end def posts_per_page 1 end def is_user_restricted?(user) !user.is_privileged? || user.name == "ppayne" end def is_post_restricted?(post) post.has_tag?("loli") || post.has_tag?("shota") end def custom_html_header_content %{ }.html_safe end end end