Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling spam results in an undefined method 'ham?' #166

Closed
map7 opened this issue Mar 6, 2016 · 1 comment · May be fixed by #167
Closed

Disabling spam results in an undefined method 'ham?' #166

map7 opened this issue Mar 6, 2016 · 1 comment · May be fixed by #167

Comments

@map7
Copy link

map7 commented Mar 6, 2016

I'm running refinerycms-inquiries (3.0.1) and when I disable the spam detection and try and send an email through the contact form I get the following error

NoMethodError in Refinery::Inquiries::InquiriesController#create
undefined method `ham?' for #<Refinery::Inquiries::Inquiry:0x007ff2940f6de0>

If I remark out the following if statement in inquiries_controller and try again it sends the email fine.
if @inquiry.ham? || Inquiries.send_notifications_for_inquiries_marked_as_spam

@bricesanchez
Copy link
Member

@map7 Thanks for reporting this issue!

See this PR #167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants