site_framework 4.0.1 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 154edfb2dab5c5bb42f28dc9f7a9093e50354120
|
4
|
+
data.tar.gz: 76b660d2ca27b37a5672291090dcbc483d2b33ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64dc5b007c5e48fc333f09046ad816f4338f0abe2fd52358d4346f31ca7a4dacc34287ea265259d6dc4b3b7a15c74400b0207c510233c8b848b34d61df9f3e1f
|
7
|
+
data.tar.gz: d325071a5bf298f9682a6789519e7f373196f3a3507bd135b9cfec30523df9a4763446ce69f6756ee7e44713924430a1bed3da86e3513afa5d1fdbee08dec6b5
|
@@ -3,10 +3,11 @@ ActionController::Base.class_eval do
|
|
3
3
|
private
|
4
4
|
|
5
5
|
def set_template_path
|
6
|
-
if request.site
|
6
|
+
if request.respond_to?(:site) && request.site
|
7
7
|
# We are in site namespace
|
8
8
|
unless request.site.default_template.blank?
|
9
|
-
|
9
|
+
prefix = SiteFramework::Engine.view_path_prefix
|
10
|
+
prepend_view_path "#{prefix}/#{request.site.default_template}"
|
10
11
|
end
|
11
12
|
end
|
12
13
|
end
|
@@ -10,9 +10,13 @@ module SiteFramework
|
|
10
10
|
end
|
11
11
|
|
12
12
|
@@default_domains = ['localhost']
|
13
|
-
|
14
13
|
mattr_accessor :default_domains
|
15
14
|
|
15
|
+
# This option allows developers to specify the prefix of path
|
16
|
+
# which they wanted to prepend to view_paths array
|
17
|
+
mattr_accessor :view_path_prefix
|
18
|
+
@@view_path_prefix = "app/views"
|
19
|
+
|
16
20
|
def self.setup
|
17
21
|
yield self
|
18
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: site_framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sameer Rahmani
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|