lib/generators/dry_crud/templates/app/helpers/standard_helper.rb
def column_property(obj, attr, property)
    if obj.respond_to?(:column_for_attribute)
      column = obj.column_for_attribute(attr)
      column.try(property)
    end
  end
# Returns an ActiveRecord column property for the passed attr or nil
Returns an ActiveRecord column property for the passed attr or nil
Returns an ActiveRecord column property for the passed attr or nil
def column_property(obj, attr, property)
    if obj.respond_to?(:column_for_attribute)
      column = obj.column_for_attribute(attr)
      column.try(property)
    end
  end
def column_property ( obj , attr , property ) if obj . respond_to? ( :column_for_attribute ) column = obj . column_for_attribute ( attr ) column . try ( property ) end end
Returns an ActiveRecord column property for the passed attr or nil
Returns an ActiveRecord column property for the passed attr or nil
obj
attr
property