Permalink
Browse files

Small changes to work with Ruby 1.8.7 too

  • Loading branch information...
1 parent 263e90e commit 0faf3858519ad3d5f884e958c729dfe2534e38eb @dmfrancisco committed Aug 3, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 watch
View
3 watch
@@ -30,6 +30,7 @@
# ./watch [options]
# (if don't have execute permission, try "ruby watch")
#
+require 'rubygems'
require 'optparse'
require 'watchr'
require 'thin'
@@ -215,7 +216,7 @@ $settings.merge!({
@live = $settings[:live]
# Simpler way of calling the "partial" method from views
-define_singleton_method(:partial) { |name| Builder::partial(name) }
+def partial(name) Builder::partial(name) end
# Check if the specified options are valid
exit unless Options::valid_options?

0 comments on commit 0faf385

Please sign in to comment.