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
|
2011-08-25 00:13:38 +00:00
|
|
|
self.name = File.basename(self.file_filename,".css")
|
2011-08-23 18:06:27 +00:00
|
|
|
end
|
|
|
|
|
2011-08-08 01:30:44 +00:00
|
|
|
end
|