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