Skip to content

Commit

Permalink
Added Rabl.render helper method to call Renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvanderbyl committed Apr 14, 2012
1 parent e508348 commit a0decd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rabl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ def reset_source_cache!
@_source_cache = {}
end

def render(object, source, options = {})
Rabl::Renderer.new(source, object, options).render
end

end
end

Expand Down

0 comments on commit a0decd8

Please sign in to comment.