active_path-view_injection 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/active_path/view_injection.rb +9 -1
- data/lib/active_path/view_injection/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32a7629fe3ab12303dc7e681b6afabeb31a42f77
|
4
|
+
data.tar.gz: 2e639c1a49fa789f1fbfb0fb5893e61f84a63f58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc4f81f25a6f68a6f115e2c4fe95bf2539f93ee72db1e93b1612848e58be3173f413185bfd75c1551227d800ae7c4b93ceb450a3f4dee0ef90cab814f1186a19
|
7
|
+
data.tar.gz: a880da98d06cea7dde6e764aca72f2badf18c46cd3478b8c9070e56981227e9c66fb4365b99e08c8407e1970d0deafdb6e73bd3dda5bddcb26594d90311cf301
|
data/README.md
CHANGED
@@ -43,7 +43,7 @@ Your partial will have the same local parameters access as the prepended partial
|
|
43
43
|
|
44
44
|
```ruby
|
45
45
|
|
46
|
-
|
46
|
+
ActivePath.append('pages/content').with('example/test')
|
47
47
|
|
48
48
|
```
|
49
49
|
|
@@ -64,7 +64,7 @@ You can pass in a hash which must match the local variables.
|
|
64
64
|
|
65
65
|
```ruby
|
66
66
|
|
67
|
-
|
67
|
+
ActivePath.append('pages/content').with('example/test').when(page_id: 9)
|
68
68
|
|
69
69
|
```
|
70
70
|
|
@@ -72,7 +72,7 @@ Or pass in a block for more flexibility with your conditions:
|
|
72
72
|
|
73
73
|
```ruby
|
74
74
|
|
75
|
-
|
75
|
+
ActivePath.append('pages/content').with('example/test').when do |locals|
|
76
76
|
locals[:page_id] == 9
|
77
77
|
end
|
78
78
|
|