diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-05 19:46:28 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-05 19:46:28 +0200 |
commit | d13d169922c7efeb6e6c20ef6a271eeda552275f (patch) | |
tree | 297367867dfee6a584bcd16d631a2f8714ddfd80 /app/lib/inline_renderer.rb | |
parent | 29ffe1cad3f473c7b6c0b651d065f8ed9373d37e (diff) | |
parent | 5b95be1c42ba69c9a3a79cfa990c80a5f2debfc6 (diff) |
Merge branch 'krainboltgreene-broadcast-to-worker'
Diffstat (limited to 'app/lib/inline_renderer.rb')
-rw-r--r-- | app/lib/inline_renderer.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/lib/inline_renderer.rb b/app/lib/inline_renderer.rb new file mode 100644 index 000000000..8e04ad1d5 --- /dev/null +++ b/app/lib/inline_renderer.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class InlineRenderer + def self.render(status, current_account, template) + Rabl::Renderer.new( + template, + status, + view_path: 'app/views', + format: :json, + scope: InlineRablScope.new(current_account) + ).render + end +end |