Skip to content

Commit

Permalink
fix late eval
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bumann committed Apr 15, 2012
1 parent bac3831 commit 66e9f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dropbox-api/client/raw.rb
Expand Up @@ -11,7 +11,7 @@ def initialize(options = {})


def self.add_method(method, action, options = {}) def self.add_method(method, action, options = {})
# Add the default root bit, but allow it to be disabled by a config option # Add the default root bit, but allow it to be disabled by a config option
root = options[:root] == false ? '' : "options[:root] ||= '#{Dropbox::API::Config.mode}'" root = options[:root] == false ? '' : "options[:root] ||= Dropbox::API::Config.mode"
self.class_eval <<-STR self.class_eval <<-STR
def #{options[:as] || action}(options = {}) def #{options[:as] || action}(options = {})
#{root} #{root}
Expand Down

0 comments on commit 66e9f4e

Please sign in to comment.