refinerycms-quotes 1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,6 +24,6 @@ class QuotesController < ApplicationController
24
24
  protected
25
25
 
26
26
  def find_page
27
- @page = Page.find_by_link_url('/quotes', :include => [:parts, :slugs])
27
+ @page = Page.find_by_link_url('/quotes/new', :include => [:parts, :slugs])
28
28
  end
29
29
  end
@@ -1,5 +1,7 @@
1
1
  class QuotesController < ApplicationController
2
2
 
3
+ before_filter :find_page, :only => [:create, :new]
4
+
3
5
  def thank_you
4
6
  @page = Page.find_by_link_url("/quotes/thank_you", :include => [:parts, :slugs])
5
7
  end
@@ -18,4 +20,10 @@ class QuotesController < ApplicationController
18
20
  render :new
19
21
  end
20
22
  end
23
+
24
+ protected
25
+
26
+ def find_page
27
+ @page = Page.find_by_link_url('/quotes', :include => [:parts, :slugs])
28
+ end
21
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-quotes
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: