Class: Link

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/link.rb

Instance Method Summary collapse

Instance Method Details

#before_saveObject


6
7
8
9
# File 'app/models/link.rb', line 6

def before_save
  self.link_text = CGI.escapeElement self.link_text, 'script'
  self.link_url  = CGI.escapeElement self.link_url,  'script'
end