Class: Guest

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/generators/governor/templates/models/guest.rb

Instance Method Summary collapse

Instance Method Details

#website=(website) ⇒ Object



11
12
13
# File 'lib/generators/governor/templates/models/guest.rb', line 11

def website=(website)
  self[:website] = (website.blank? or website.starts_with? 'http://') ? website : 'http://' + website
end