tramway-page 1.2 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/decorators/tramway/page/page_decorator.rb +6 -0
- data/lib/tramway/page/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e44597a018f3812acd0693e73739f99407973120c4130eb9283a319279669ac8
|
4
|
+
data.tar.gz: e370a9eb734d4c58361c640afb4d310ac7478fae3f7724a4593faa586b4d1414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6f8738bc6b33e158d917c7b84f12b177036be256abcd128663a9b91ffc9412d414dad5e8e56ffd2c9ee1ddfd261630365a74f2833d8d9f1a333d51ce173442b
|
7
|
+
data.tar.gz: 91d6761960e77a640ee647e6da04a59456e4a6afa0c9115f345943cce1ee0c46ffc651e82dd27195f14b45f6cfb3b815b7e252d8d53a12cee468601d0d021ab2
|
@@ -5,6 +5,8 @@ class Tramway::Page::PageDecorator < ::Tramway::Core::ApplicationDecorator
|
|
5
5
|
end
|
6
6
|
end
|
7
7
|
|
8
|
+
delegate :title, to: :object
|
9
|
+
|
8
10
|
def lead
|
9
11
|
object.body.first 200
|
10
12
|
end
|
@@ -12,4 +14,8 @@ class Tramway::Page::PageDecorator < ::Tramway::Core::ApplicationDecorator
|
|
12
14
|
def link
|
13
15
|
Tramway::Page::Engine.routes.url_helpers.page_path slug: object.slug
|
14
16
|
end
|
17
|
+
|
18
|
+
def public_path
|
19
|
+
Tramway::Page::Engine.routes.url_helpers.page_path object.slug
|
20
|
+
end
|
15
21
|
end
|
data/lib/tramway/page/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-page
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Description of Tramway::Page.
|
14
14
|
email:
|