闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
362 B

  1. module RoutingHelper
  2. extend ActiveSupport::Concern
  3. include Rails.application.routes.url_helpers
  4. include ActionView::Helpers::AssetTagHelper
  5. included do
  6. def default_url_options
  7. ActionMailer::Base.default_url_options
  8. end
  9. end
  10. def full_asset_url(source)
  11. File.join(root_url, ActionController::Base.helpers.asset_url(source))
  12. end
  13. end