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.
2011-08-08 01:30:44 +00:00
|
|
|
class Theme < Stylesheet
|
|
|
|
embedded_in :design
|
2011-08-23 18:06:27 +00:00
|
|
|
field :name
|
|
|
|
|
|
|
|
before_save :set_name
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def set_name
|
2012-01-24 03:36:24 +00:00
|
|
|
self.name = File.basename(self.file_identifier,".css")
|
2011-08-23 18:06:27 +00:00
|
|
|
end
|
|
|
|
|
2011-08-08 01:30:44 +00:00
|
|
|
end
|