Sha256: 8b4f92f05177507cc7a378294ae9090cc10fa1e899a84d10538db90eba63cb00
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 Bytes
Contents
require 'rubygems' require 'bacon' require 'ruby-debug' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'ludicrous_speed' File.delete( 'dbfile' ) ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => "dbfile") Bacon.summary_on_exit ActiveRecord::Migration.create_table :foos do |t| t.string :name t.string :bacon t.text :_why end class Foo < ActiveRecord::Base name_yield_or( :bar, { :conditions => "_why = 'bacon'" } ) name_yield_or( :omg, lambda{ |x,y| { :conditions => "#{x} != #{y}" } } ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cajun-ludicrous_speed-0.0.0 | spec/spec_helper.rb |