2011-08-08 01:30:44 +00:00
|
|
|
class Theme < Stylesheet
|
|
|
|
embedded_in :design
|
2011-08-23 18:06:27 +00:00
|
|
|
field :name
|
|
|
|
|
|
|
|
has_many :pages
|
|
|
|
|
|
|
|
before_save :set_name
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def set_name
|
|
|
|
self.name = self.file_filename.split('.')[0]
|
|
|
|
end
|
|
|
|
|
2011-08-08 01:30:44 +00:00
|
|
|
end
|