lib/aptible/rails/routes_helper.rb in aptible-rails-0.1.6 vs lib/aptible/rails/routes_helper.rb in aptible-rails-0.1.7

- old
+ new

@@ -1,18 +1,18 @@ module Aptible module Rails module RoutesHelper - def main_url + def marketing_url 'https://www.aptible.com' end def about_url - main_url + '/about' + marketing_url + '/about' end def audits_url - main_url + '/stressfree' + marketing_url + '/stressfree' end # Tumblr doesn't support HTTPS w/ our own domain def blog_url 'http://blog.aptible.com' @@ -21,43 +21,55 @@ def compliance_url ENV['APTIBLE_DASHBOARD_ROOT_URL'] + '/compliance' end def contact_url - main_url + '/contact' + marketing_url + '/contact' end def dashboard_url ENV['APTIBLE_DASHBOARD_ROOT_URL'] end def docs_url - main_url + '/docs' + marketing_url + '/docs' end + def edit_organization_url + ENV['APTIBLE_DASHBOARD_ROOT_URL'] + '/organization' + end + + def edit_user_url + ENV['APTIBLE_DASHBOARD_ROOT_URL'] + '/settings' + end + def enterprise_url - main_url + '/enterprise' + marketing_url + '/enterprise' end def legal_url - main_url + '/legal' + marketing_url + '/legal' end + def logout_url + ENV['APTIBLE_DASHBOARD_ROOT_URL'] + '/logout' + end + def policy_url ENV['APTIBLE_POLICY_ROOT_URL'] end def pricing_url - main_url + '/pricing' + marketing_url + '/pricing' end def privacy_url - main_url + '/privacy' + marketing_url + '/privacy' end def security_url - main_url + '/privacy' + marketing_url + '/security' end # Groove doesn't support HTTPS w/ our own domain def support_url 'http://help.aptible.com' @@ -75,14 +87,14 @@ def roles_url ENV['APTIBLE_DASHBOARD_ROOT_URL'] + '/roles' end def terms_url - main_url + '/terms' + marketing_url + '/terms' end def training_url - main_url + '/training' + marketing_url + '/training' end end end end