Using Columns with Reserved Names in Rails

From Rails Mailing List : How to access column with a reserved name?





def new_column
read_attribute 'old_column'
end

def new_column=(value)
write_attribute 'old_column', value
end


Popular posts from this blog

Lists and arrays in Dart

Maps and hashes in Dart

Null-aware operators in Dart