This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/models/design/theme.rb

12 lines
171 B
Ruby

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