#357 new
Delineate

adva_comments dependent on adva_spam

Reported by Delineate | April 16th, 2010 @ 10:16 PM

Vanilla install of master/0.3.1 on postgresql
Enable adva_comments and disable adva_spam (which is default)
Create page with comments enabled.
Create a new comment in website logged in as superuser.

The comment controller references check_approval() in

vendor/adva/engines/adva_comment/app/comments/controllers/comments_controllers.rb:41

This function is defined, afaik, in and only in

vendor/adva/engines/adva_spam/config/initializers/comment.rb:22

When creating a comment as superuser (and probably others), the following error:

undefined method `check_approval' for #<Comment:0x7fc0ca7f0688>

Abbreviated Trace:

/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/attribute_methods.rb:260:in `method_missing'
/home/david/Projects/adva_vanilla/vendor/plugins/adva_comments/app/controllers/comments_controller.rb:41:in `create'

Comments and changes to this ticket

  • Geoff Drake

    Geoff Drake September 8th, 2010 @ 11:35 AM

    • Milestone order changed from “0” to “0”

    I was about to report this problem and found this ticket.

    I monkey patched the code from an initializer in my plugin to temporarily get around this problem:

    if Rails.plugin?(:adva_comments)
    ActionController::Dispatcher.to_prepare do

    Comment.class_eval do
      def check_approval(context = {})
      end
    end
    

    end end

  • HarryDadson

    HarryDadson January 1st, 2020 @ 05:18 PM

    Light house is a typical website that is basically for forums. You can help from dissertation writer to solve your thesis work. It is used for forums to post your personal forums. You can also make as a group for forums.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>

<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>

<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>

People watching this ticket

Pages