site_logic 1.9.1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.9.1
1
+ 1.9.2
@@ -1,13 +1,11 @@
1
1
  class PagesController < ApplicationController
2
-
3
2
  def show
4
3
  @site = Site.where(:domain => request.host).first || Site.first
5
4
 
6
- if @page = @site.pages.published.select{ |p| p.slug =~ /#{params[:path]}/i }.first || @site.home_page
5
+ if @page = @site.pages.published.select{ |p| p.slug =~ /#{params[:path]}/i }.first
7
6
  render :layout => @site.layout
8
7
  else
9
- redirect_to '/404'
8
+ raise Mongoid::Errors::DocumentNotFound.new Page, params[:path]
10
9
  end
11
10
  end
12
-
13
- end
11
+ end
data/site_logic.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "site_logic"
8
- s.version = "1.9.1"
8
+ s.version = "1.9.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bantik"]
12
- s.date = "2011-09-27"
12
+ s.date = "2011-09-28"
13
13
  s.description = "An engine for search-engine-optimized content management."
14
14
  s.email = "corey@seologic.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 9
9
- - 1
10
- version: 1.9.1
9
+ - 2
10
+ version: 1.9.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bantik
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-27 00:00:00 Z
18
+ date: 2011-09-28 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bson_ext