diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-03-03 14:52:30 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-03-03 14:52:30 +1100 |
commit | cbdff06aa95a7987b54c712dc6729e138f608eca (patch) | |
tree | b101dd575c5cab97675c0ac488e68fa6cbd0c4fd /lib/tasks | |
parent | f02881b5bf5cc4d633983100078be2e64b8e6fcc (diff) |
Rename Configuration class to avoid conflict with ActiveSupport::Configurable
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/themes.rake | 10 | ||||
-rw-r--r-- | lib/tasks/translation.rake | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/tasks/themes.rake b/lib/tasks/themes.rake index 14aa15551..cbd3d123e 100644 --- a/lib/tasks/themes.rake +++ b/lib/tasks/themes.rake @@ -31,7 +31,7 @@ namespace :themes do if system(clone_command) Dir.chdir install_path do # First try to checkout a specific branch of the theme - tag_checked_out = checkout_remote_branch(Configuration::theme_branch) if Configuration::theme_branch + tag_checked_out = checkout_remote_branch(AlaveteliConfiguration::theme_branch) if AlaveteliConfiguration::theme_branch if !tag_checked_out # try to checkout a tag exactly matching ALAVETELI VERSION tag_checked_out = checkout_tag(ALAVETELI_VERSION) @@ -94,10 +94,10 @@ namespace :themes do desc "Install themes specified in the config file's THEME_URLS" task :install => :environment do verbose = true - Configuration::theme_urls.each{ |theme_url| install_theme(theme_url, verbose) } - if ! Configuration::theme_url.blank? + AlaveteliConfiguration::theme_urls.each{ |theme_url| install_theme(theme_url, verbose) } + if ! AlaveteliConfiguration::theme_url.blank? # Old version of the above, for backwards compatibility - install_theme(Configuration::theme_url, verbose, deprecated=true) + install_theme(AlaveteliConfiguration::theme_url, verbose, deprecated=true) end end -end
\ No newline at end of file +end diff --git a/lib/tasks/translation.rake b/lib/tasks/translation.rake index aab327d5b..351faef2c 100644 --- a/lib/tasks/translation.rake +++ b/lib/tasks/translation.rake @@ -156,7 +156,7 @@ namespace :translation do write_email(event_digest_email, 'Alerts on things the user is tracking', output_file) # user mailer - site_name = Configuration::site_name + site_name = AlaveteliConfiguration::site_name reasons = { :web => "", :email => _("Then you can sign in to {{site_name}}", :site_name => site_name), |