Skip to content
Browse files

The class_variable_get method is private on Module in ruby 1.8.7. Usi…

…ng send allows guard-s3 to work in ruby 1.8.7 too.
  • Loading branch information...
1 parent 4389161 commit 23fecab9717e5910c133345aa5db1c8a12ef8a52 @kjwierenga committed Jan 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/guard/s3.rb
View
2 lib/guard/s3.rb
@@ -58,7 +58,7 @@ def log(msg)
def watchdir
# TODO: Nicer way to detect Guard watching a directory explicitly?
- ::Guard::Dsl.class_variable_get(:@@options).watchdir
+ ::Guard::Dsl.send(:class_variable_get, :@@options).watchdir
end
end
end

0 comments on commit 23fecab

Please sign in to comment.
Something went wrong with that request. Please try again.