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.

13 lines
283 B

  1. # frozen_string_literal: true
  2. class InlineRenderer
  3. def self.render(status, current_account, template)
  4. Rabl::Renderer.new(
  5. template,
  6. status,
  7. view_path: 'app/views',
  8. format: :json,
  9. scope: InlineRablScope.new(current_account)
  10. ).render
  11. end
  12. end