Sha256: d105f61160a3222704c229c4d516450d284eca7a8b6e78f0cebe8e0d55496a5d
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
require 'rubygems' require 'test/unit' require 'active_record' ActiveRecord::Base.establish_connection({ :adapter => 'sqlite3', :database => 'docu_test' }) ActiveRecord::Schema.define do create_table 'orders', :force => true do |t| t.column 'bag', :text end end ActiveRecord::Schema.define do create_table 'users', :force => true do |t| t.string :type t.text :bag end end require File.dirname(__FILE__) + '/../lib/act_with_bag.rb' class Order < ActiveRecord::Base add_to_bag :field, :flag => :boolean, :at => :date end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
act_with_bag-0.4.2 | test/test_helper.rb |