Displaying 1 result from an estimated 1 matches for "activerecordenumerations".
2007 Aug 24
0
ArgumentError: interning empty string and enum-column plugin
...39;',''Venue'',''Fan'',''Label'').
This causes the mysql_adapter.rb section of the plugin to throw a
"ArgumentError: interning empty string" error in this section of code:
[code]
class MysqlColumnWithEnum < MysqlColumn
include ActiveRecordEnumerations::Column
def initialize(name, default, sql_type = nil, null = true)
if sql_type =~ /^enum/i
values = sql_type.sub(/^enum\(''([^)]+)''\)/i,
''\1'').split("'',''").map { |v| v.intern}
default = default.inter...