35 36 37 38 39
# File 'app/models/site.rb', line 35 def set_default if self.class.default.count < 1 update_attribute(:the_default, true) end end