orbit-basic/app/models/design/theme.rb

16 lines
204 B
Ruby
Raw Normal View History

class Theme < Stylesheet
embedded_in :design
field :name
has_many :pages
before_save :set_name
protected
def set_name
self.name = self.file_filename.split('.')[0]
end
end