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

12 lines
155 B
Ruby
Raw Permalink Normal View History

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