app/models/agent.rb
# Set these fields to blank because insistence on having NOT NULL columns on things that aren't populated
# until certain steps.
Set these fields to blank because insistence on having NOT NULL columns on things that aren't populated
until certain steps.
Set these fields to blank because insistence on having NOT NULL columns on things that aren ' t populated until certain steps .
def blank_not_null_fields
    self.homepage       ||= ''
    self.full_name      ||= ''
    self[:logo_url]     ||= ''
    self.homepage = 'http://' + self.homepage if self.homepage != '' && (self.homepage[0..6] != 'http://' && self.homepage[0..7] != 'https://')
  end
def blank_not_null_fields self . homepage ||= '' self . full_name ||= '' self [ :logo_url ] ||= '' self . homepage = 'http://' + self . homepage if self . homepage != '' && ( self . homepage [ 0 .. 6 ] != 'http://' && self . homepage [ 0 .. 7 ] != 'https://' ) end
Set these fields to blank because insistence on having NOT NULL columns on things that aren't populated
until certain steps.
Set these fields to blank because insistence on having NOT NULL columns on things that aren ' t populated until certain steps .