Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Append inquiry page body content before inquiry form.

  • Loading branch information...
commit f1561e8a285a51a8d7dd97a6f38d4983b59667a5 1 parent 361b3a3
@keram keram authored ugisozols committed
View
2  app/views/refinery/inquiries/inquiries/new.html.erb
@@ -1,4 +1,6 @@
<% content_for :body do %>
+ <%= raw @page.content_for(Refinery::Pages.default_parts.first.to_sym) if Refinery::Pages.default_parts.any? %>
+
<div class='inquiries'>
<%= form_for [refinery, :inquiries, @inquiry] do |f| %>
<%= render :partial => "/refinery/admin/error_messages",
View
2  spec/requests/refinery/inquiries/mailer_spec.rb
@@ -5,6 +5,8 @@ module Refinery
module Inquiries
describe "mailer" do
before do
+ FactoryGirl.create(:page, :link_url => "/contact")
+
Refinery::Inquiries::Setting.stub(:notification_recipients).and_return("rspec@refinerycms.com")
clear_emails
Please sign in to comment.
Something went wrong with that request. Please try again.