class SideType < ActiveRecord::Base

  default_scope { order(:code) }

  scope :active, -> { where(active: true) }

  def to_s
    name
  end

end

class SideType < ActiveRecord::Base

  default_scope { order(:code) }

  scope :active, -> { where(active: true) }

  def to_s
    code
  end

end

Use correct coding for default name
Use correct coding for default name
