pboling/flag_shih_tzu — pull request #26 by ddidier (2013-01-22 22:20:36+00:00)
Title: Added validator

class Spaceship < ActiveRecord::Base
include FlagShihTzu

has_flags(1 => :warpdrive, 2 => :hyperspace, :column => 'engines')
validates_presence_of_flags :engines
end