diff --git a/lib/rabl/builder.rb b/lib/rabl/builder.rb
index <HASH>..<HASH> 100644
--- a/lib/rabl/builder.rb
+++ b/lib/rabl/builder.rb
@@ -5,6 +5,7 @@ module Rabl
     # Constructs a new ejs hash based on given object and options
     def initialize(data, options={}, &block)
       @options    = options
+      @_scope     = options[:scope]
       @_data      = data
       @_object    = data_object(data)
       @_result    = {}
diff --git a/lib/rabl/engine.rb b/lib/rabl/engine.rb
index <HASH>..<HASH> 100644
--- a/lib/rabl/engine.rb
+++ b/lib/rabl/engine.rb
@@ -14,6 +14,7 @@ module Rabl
     def render(scope, locals, &block)
       @_locals, @_scope = locals, scope
       self.copy_instance_variables_from(@_scope, [:@assigns, :@helpers])
+      @_options[:scope] = @_scope
       @_data = locals[:object] || self.default_object
       instance_eval(@_source) if @_source.present?
       instance_eval(&block) if block_given?
Adds scope ivar to builder