diff options
author | Shel R <Yiskah.Raphen@gmail.com> | 2017-04-07 21:59:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 21:59:21 -0400 |
commit | 4c05f0e630aacad594e7b21147340e2c0a0ac8ad (patch) | |
tree | 4ef28c2f42dd8e4cdfd9815dd6550b5bd2601f36 /app/lib/inline_renderer.rb | |
parent | 96812a6c792c8b048ed8d4a50351d9696dcf0f77 (diff) | |
parent | d438eab67301e767bdd040c6f9bd831c92214656 (diff) |
Merge branch 'master' into patch-1
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 |