cyborg 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cyborg/helpers/layout_helpers.rb +3 -3
- data/lib/cyborg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9b736c806174778c62362942829c5d701b301fd
|
4
|
+
data.tar.gz: b0f2b1a68ee00ddd316d52d58f6e5a123c71d97b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff489c2af513708ec98a5aa7eb790601277a375c672c9fb1562f5ea4c444967e46a585a9d9cca39e3b26f7df0be250c53b6f0204dff12eb47615ade350a8dc47
|
7
|
+
data.tar.gz: e3b85dc800f7b5052d52b4809596728d6baf03c28ddd2c5559dc1e34c1b1c280c1b3a7485fae87ead283186fe79c31d86e7ee2007167987711f6ec88c2133c50
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Cyborg
|
2
2
|
module Helpers
|
3
3
|
module LayoutHelper
|
4
|
-
def layout(name, options={}, &block)
|
5
|
-
layout = options.delete(:layout) || 'application'
|
4
|
+
def layout(name=nil, options={}, &block)
|
5
|
+
layout = name || options.delete(:layout) || 'application'
|
6
6
|
yield
|
7
|
-
render template: "layouts/#{name}/#{layout}"
|
7
|
+
render template: "layouts/#{Cyborg.plugin.name}/#{layout}"
|
8
8
|
end
|
9
9
|
|
10
10
|
def javascripts(&block)
|
data/lib/cyborg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyborg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|