locomotivecms/engine — pull request #366 by dimonzozo (2012-04-16 22:46:41+00:00)
Title: Bug while sending notification email

There is a bug while sending notification email on successfully submission public avaliable record.

NoMethodError (undefined method `content_type' for #):
mongoid (2.4.8) lib/mongoid/attributes.rb:166:in `method_missing'
.../shared/bundle/ruby/1.9.1/bundler/gems/engine-f7388d14e709/app/mailers/locomotive/notifications.rb:7:in `new_
content_entry'
actionpack (3.2.3) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.3) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.3) lib/abstract_controller/rendering.rb:45:in `process'
actionmailer (3.2.3) lib/action_mailer/base.rb:456:in `process'
actionmailer (3.2.3) lib/action_mailer/base.rb:451:in `initialize'
actionmailer (3.2.3) lib/action_mailer/base.rb:438:in `new'
actionmailer (3.2.3) lib/action_mailer/base.rb:438:in `method_missing'
.../shared/bundle/ruby/1.9.1/bundler/gems/engine-f7388d14e709/app/models/locomotive/content_entry.rb:151:in `blo
ck in send_notifications'
mongoid (2.4.8) lib/mongoid/contexts/mongo.rb:260:in `block (2 levels) in iterate'
mongoid (2.4.8) lib/mongoid/cursor.rb:50:in `block in each'
mongoid (2.4.8) lib/mongoid/collections/retry.rb:29:in `retry_on_connection_failure'
mongoid (2.4.8) lib/mongoid/cursor.rb:48:in `each'
mongoid (2.4.8) lib/mongoid/contexts/mongo.rb:260:in `block in iterate'
mongoid (2.4.8) lib/mongoid/contexts/mongo.rb:478:in `selecting'
mongoid (2.4.8) lib/mongoid/contexts/mongo.rb:257:in `iterate'
mongoid (2.4.8) lib/mongoid/criteria.rb:145:in `block in each'
mongoid (2.4.8) lib/mongoid/criteria.rb:145:in `tap'
mongoid (2.4.8) lib/mongoid/criteria.rb:145:in `each'
.../shared/bundle/ruby/1.9.1/bundler/gems/engine-f7388d14e709/app/models/locomotive/content_entry.rb:148:in `sen
d_notifications'