class Unit < ActiveRecord::Base has_many :products ##--- Tipo de vistas / consultas scope :vigentes, -> { where( "status != -1") } end