Orbit/app/models/design/theme.rb

15 lines
196 B
Ruby

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