Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
updated ansuz theme to slugify the name (sort of, needs more work)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Adams committed Nov 23, 2008
1 parent 5981faf commit 0aec1f7
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -5,12 +5,17 @@ module JAdams
class AnsuzTheme < ActiveRecord::Base
validates_uniqueness_of :name

before_save :clean_up_name
after_save :update_theme_repository_xml
# FIXME: The theme installer and repository plugins are intermingled and gross

def update_theme_repository_xml
Ansuz::JAdams::ThemeRepositoryManager.write_file
end

def clean_up_name
self.name = self.name.gsub(/ /, '_')
end
end
end
end

0 comments on commit 0aec1f7

Please sign in to comment.