diff options
author | Shel R <Yiskah.Raphen@gmail.com> | 2017-04-07 22:09:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 22:09:55 -0400 |
commit | 6efaee30b159313a72d0433d562d364ede2f513c (patch) | |
tree | 18d62573ed68ce653879aa116729be1f37085ae1 /app/lib/inline_renderer.rb | |
parent | e5566ac6a6462c0a8a6c6c8f2a1171087bd662a4 (diff) | |
parent | 698fe3686a8e9a76ae21660d7504a229564d4594 (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 |