Class: Stylesheet

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

Instance Method Summary collapse

Instance Method Details

#before_saveObject



4
5
6
# File 'app/models/stylesheet.rb', line 4

def before_save
  self.data = CGI.escapeElement(self.data, 'script')
end