Orbit/app/models/design/theme.rb

14 lines
191 B
Ruby

class Theme < Stylesheet
embedded_in :design
field :name
before_save :set_name
protected
def set_name
self.name = File.basename(self.file_filename,".css")
end
end