orbit-4-2/app/models/design/css_default.rb

12 lines
205 B
Ruby

class CssDefault < Stylesheet
# belongs_to :design
# belongs_to :desktop_widget
belongs_to :css, polymorphic: true
def content
self.file.read.force_encoding("UTF-8") rescue ''
end
end