cat_router 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cat_router/hook.rb +1 -1
- data/lib/cat_router/instance_methods.rb +4 -1
- data/lib/cat_router/version.rb +1 -1
- metadata +3 -3
data/lib/cat_router/hook.rb
CHANGED
@@ -5,8 +5,11 @@ module CatRouter::InstanceMethods
|
|
5
5
|
I18n.locale = params[:locale] if params[:locale]
|
6
6
|
end
|
7
7
|
|
8
|
-
def
|
8
|
+
def load_cat_route
|
9
9
|
@cat_route = CatRoute.with_slug(params[:slug] ? params[:slug] : '').with_domain(request.host).first
|
10
|
+
end
|
11
|
+
|
12
|
+
def handle_cat_routes
|
10
13
|
if @cat_route.present?
|
11
14
|
render :layout => true, :inline => @cat_route.html ? @cat_route.html : ''
|
12
15
|
else
|
data/lib/cat_router/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cat_router
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 7
|
10
|
+
version: 0.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kristijan Sedlak
|