Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jfirebaugh's full-sized avatar

John Firebaugh jfirebaugh

View GitHub Profile
diff --git a/lib/sequel/plugins/nested_attributes.rb b/lib/sequel/plugins/nested_attributes.rb
index d04176f..b0b3107 100644
--- a/lib/sequel/plugins/nested_attributes.rb
+++ b/lib/sequel/plugins/nested_attributes.rb
@@ -91,6 +91,7 @@ module Sequel
send(reflection[:name]) << obj
after_save_hook{send(reflection.add_method, obj)}
else
+ associations[reflection[:name]] = obj
# Don't need to validate the object twice if :validate association option is not false
(function($) {
// Combination of jQuery.deparam and jQuery.serializeObject by Ben Alman.
/*!
* jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
undefined method `add_examples' for #<Cucumber::Ast::Scenario:0x8a6465> (NoMethodError)
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/cucumber-0.8.4/bin/../lib/cucumber/parser/gherkin_builder.rb:82:in `examples'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:143:in `replay_events!'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:142:in `each'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:142:in `replay_events!'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:131:in `replay!'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:40:in `scenario'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/tag_count_formatter.rb:1
Feature: Invoking steps
Scenario: Invoking steps
When I invoke steps
From 6ff2d333271b104de652603ce8049c80ccb08141 Mon Sep 17 00:00:00 2001
From: John Firebaugh <john_firebaugh@bigfix.com>
Date: Mon, 23 Aug 2010 14:28:16 -0700
Subject: [PATCH] Prefer persisted? to new_record?, so any ActiveModel-compliant object can be used.
---
lib/formtastic.rb | 10 +++++++---
spec/commit_button_spec.rb | 39 ++++++++++++++++++++++++++++++++++++++-
2 files changed, 45 insertions(+), 4 deletions(-)
<html>
<head>
<style>v\:oval { behavior:url(#default#VML); display:inline-block }</style>
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(document).submit(function () {});
$('oval').click();
})
jQuery Test Suite
Hide passed testsHide missing tests (untested code is broken code)
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.55 Safari/534.3
traversing: contents() (2, 2, 4)
Died on test #3: Cannot read property 'body' of undefined
Expected 12 assertions, but 3 were run
effects: show(Number) - other displays (2, 0, 2)
Died on test #1: rdashAlpha is not defined
Expected 15 assertions, but 1 were run
effects: animate(Hash, Object, Function) (1, 0, 1)
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$('a').live('click', function () { alert('click'); });
$('form').live('submit', function () { alert('submit'); });
</script>
</head>
<body>
<form><input type="submit"/></form>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$('a').live('click', function () { alert('click'); });
$('form').live('submit', function () { alert('submit'); });
</script>
</head>
<body>
<form><input type="submit"/></form>
<html>
<head>
<style>v\:oval { behavior:url(#default#VML); display:inline-block }</style>
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('oval').click(function () { alert("type" in this); alert(this.type); } );
})
</script>