Created
March 20, 2015 22:13
-
-
Save nerdinand/d6d839841a18a481eed7 to your computer and use it in GitHub Desktop.
Trying to reproduce https://github.com/rails/rails/issues/15900
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::Base.establish_connection( | |
:adapter => 'sqlite3', | |
:database => 'testing.db' | |
) | |
class Testing < ActiveRecord::Base | |
end | |
Testing.connection.create_table :testings do |t| | |
t.string :format | |
end | |
record = Testing.new(format: 'foo') | |
record.save! | |
record = Testing.first | |
record.send('format') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment