config/routes.rb in e9_crm-0.1.13 vs config/routes.rb in e9_crm-0.1.14

- old
+ new

@@ -1,14 +1,21 @@ Rails.application.routes.draw do crm_path = 'admin/crm' + get '/autocomplete/contacts' => E9Crm::Rack::ContactAutoCompleter + get '/autocomplete/companies' => E9Crm::Rack::CompanyAutoCompleter + scope :module => :e9_crm do resources :offers, :as => :public_offer, :only => :show do resources :leads, :as => :deals, :only => [:new, :create], :path => '' end end scope :path => crm_path, :module => :e9_crm do + # NOTE this should be handled by base, and is here because base doesn't have a sensible + # user api, which crm needs to check for email uniqueness errors + resources :users, :only => :new + resources :companies, :except => :show resources :contacts do # page_views currently not routed, but near working #resources :page_views, :path => 'activity', :only => :index