lib/rabl/builder.rb in rabl-0.6.11 vs lib/rabl/builder.rb in rabl-0.6.12

- old
+ new

@@ -7,9 +7,10 @@ # :attributes, :node, :child, :glue, :extends } # def initialize(options={}, &block) @options = options @_scope = options[:scope] + @_view_path = options[:view_path] end # Given an object and options, returns the hash representation # build(@user, :format => "json", :attributes => { ... }, :root_name => "user") def build(object, options={})