- if resource_class.column_names.include? 'name' - grid.column name: input_label(:defaults, :name), attribute: 'name' do |obj| - obj.name - elsif resource_class.column_names.include? 'title' - grid.column name: input_label(:defaults, :title), attribute: 'title' do |obj| - obj.title - elsif resource_class.column_names.include? 'email' - grid.column name: input_label(:defaults, :email), attribute: 'email' do |obj| - obj.email - column_actions(grid)