Skip to content

Commit

Permalink
more modifications for new proposals module: added module to comments…
Browse files Browse the repository at this point in the history
…_controller, activity_observer, routes.rb and updated settings.yml
  • Loading branch information
ingojaeckel committed Nov 3, 2009
1 parent 59c852f commit 831e2f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/comments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class CommentsController < ApplicationController
before_filter :require_user
COMMENTABLE = %w(account_id campaign_id contact_id lead_id opportunity_id task_id service_id).freeze
COMMENTABLE = %w(account_id campaign_id contact_id lead_id opportunity_id task_id service_id proposal_id).freeze

# GET /comments
# GET /comments.xml not implemented
Expand Down
2 changes: 1 addition & 1 deletion app/models/activity_observer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#------------------------------------------------------------------------------

class ActivityObserver < ActiveRecord::Observer
observe Account, Campaign, Contact, Lead, Opportunity, Task, Service
observe Account, Campaign, Contact, Lead, Opportunity, Task, Service, Proposal
@@tasks = {}
@@leads = {}

Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
map.resources :contacts, :has_many => :comments, :collection => { :search => :get, :auto_complete => :post, :options => :get, :redraw => :post }
map.resources :opportunities, :has_many => :comments, :collection => { :search => :get, :auto_complete => :post, :options => :get, :redraw => :post }
map.resources :services, :has_many => :comments, :collection => { :search => :get, :auto_complete => :post, :options => :get, :redraw => :post }
map.resources :proposals, :has_many => :comments, :collection => { :search => :get, :auto_complete => :post, :options => :get, :redraw => :post }

map.signup "signup", :controller => "users", :action => "new"
map.profile "profile", :controller => "users", :action => "show"
Expand Down
2 changes: 1 addition & 1 deletion config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{ :active : false, :text : "Accounts", :url : { :controller : "accounts" } },
{ :active : false, :text : "Contacts", :url : { :controller : "contacts" } },
{ :active : false, :text : "Opportunities", :url : { :controller : "opportunities" } },
{ :active : false, :text : "Quotes", :url : { :controller : "/" } },
{ :active : false, :text : "Proposals", :url : { :controller : "/proposals" } },
{ :active : false, :text : "Contracts", :url : { :controller : "/" } },
{ :active : false, :text : "Services", :url : { :controller : "services" } }
]
Expand Down

0 comments on commit 831e2f0

Please sign in to comment.