Sha256: d0af0b7d7b0ddc3f0e95b74691f1faf7e73559f9adccebcb987d68b12b39cd9a

Contents?: true

Size: 529 Bytes

Versions: 16

Compression:

Stored size: 529 Bytes

Contents

require 'active_record'

ActiveRecord::Base.establish_connection({
  :adapter => 'sqlite3',
  :database => ':memory:'
})

ActiveRecord::Schema.define do
  create_table "users", :force => true do |t|
    t.column "first_name",  :text
    t.column "last_name",  :text
    t.column "email", :text
  end
end

class User < ActiveRecord::Base
  include Quebert::AsyncSender::ActiveRecord
  
  def name
    "#{first_name} #{last_name}"
  end
  
  def self.emailizer(address)
    address
  end

  def email(address)
    address
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
quebert-2.0.2 spec/support/active_record.rb
quebert-2.0.1 spec/support/active_record.rb
quebert-2.0.0 spec/support/active_record.rb
quebert-1.12.0 spec/support/active_record.rb
quebert-1.11.0 spec/support/active_record.rb
quebert-1.0.9 spec/support/active_record.rb
quebert-1.0.8 spec/support/active_record.rb
quebert-1.0.7 spec/support/active_record.rb
quebert-1.0.6 spec/support/active_record.rb
quebert-1.0.5 spec/support/active_record.rb
quebert-1.0.4 spec/support/active_record.rb
quebert-1.0.2 spec/support/active_record.rb
quebert-1.0.1 spec/support/active_record.rb
quebert-1.0.0 spec/support/active_record.rb
quebert-0.0.9 spec/support/active_record.rb
quebert-0.0.8 spec/support/active_record.rb