kuhsaft 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,10 +2,16 @@ module Kuhsaft
|
|
2
2
|
class PagesController < ApplicationController
|
3
3
|
|
4
4
|
respond_to :html
|
5
|
+
before_filter :complete_url
|
5
6
|
|
6
7
|
def show
|
7
8
|
@page = Kuhsaft::Page.find_by_url(params[:url])
|
8
9
|
respond_with @page
|
9
10
|
end
|
11
|
+
|
12
|
+
private
|
13
|
+
def complete_url
|
14
|
+
params[:url] = "#{params[:locale]}/#{params[:url]}" if params[:url].present? && params[:locale].present?
|
15
|
+
end
|
10
16
|
end
|
11
17
|
end
|
data/config/routes.rb
CHANGED
data/lib/kuhsaft/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuhsaft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- "Immanuel H\xC3\xA4ussermann"
|
@@ -16,7 +17,7 @@ autorequire:
|
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date: 2011-07-
|
20
|
+
date: 2011-07-15 00:00:00 +02:00
|
20
21
|
default_executable:
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|