column 'Name' do |c|
c.name
end
column :name
Are they same in execution time and performance wise ? Any of them is good for better performance ?
column 'Name' do |c|
c.name
end
column :name
Are they same in execution time and performance wise ? Any of them is good for better performance ?
The first one, with a block will be slightly slower, as an extra yield will be performed at the call-site. I doubt you will notice the difference, and/or that when profiled it will show speed-gains.