Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Rails3 #16

Open
wants to merge 1 commit into from

2 participants

@kuntoaji

Removing window.load, this patch will make harmony works properly with rails 3.

see this pastie for more information: http://pastie.org/private/o6sri73teazpf3dv3eq

@pboling

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/harmony/page.rb
View
4 lib/harmony/page.rb
@@ -73,7 +73,9 @@ def initialize(document=nil)
#
def load(*paths)
paths.flatten.each do |path|
- window.load(path.to_s)
+ path.to_s.map {|f|
+ window.evaluate(File.read(f).gsub(/\A#!.*$/, ''), f, 1)
+ }.last
end
self
end
Something went wrong with that request. Please try again.