Files
danbooru/app/logical/routes.rb
evazion a7dc05ce63 Enable frozen string literals.
Make all string literals immutable by default.
2021-12-14 21:33:27 -06:00

19 lines
383 B
Ruby

# frozen_string_literal: true
# Allow Rails URL helpers to be used outside of views.
#
# @example
# Routes.posts_path(tags: "touhou")
# => "/posts?tags=touhou"
#
# @see config/routes.rb
# @see https://guides.rubyonrails.org/routing.html
class Routes
include Singleton
include Rails.application.routes.url_helpers
class << self
delegate_missing_to :instance
end
end