effective_pages 3.7.6 → 3.7.7
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e8d314134e576fdb6c96d83e22d4532aaee08d191ed61f1c51a5c9a7778db68
|
4
|
+
data.tar.gz: cc6ee51377b8996b53c28a81c342366914f9372f32945fb7127950aa5b311235
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e33484f7ed409b1f55f3ef1630a4f75327c0db94ed4a6416d59df128f2e3941fa9e2bdd2f30dbab5042ea641d3c3d461944c6dfe60005cbb25c59cab365957ce
|
7
|
+
data.tar.gz: c38237b16c2fefbb59eba713d6dbd43cfa0dad99b59bbee3d0429002ba7a43d650aaaa9c8dc58550437c1ee6da3b017b9e2e13e8686c91a7a2d95b5a2b3d9381
|
@@ -11,6 +11,7 @@ module Effective
|
|
11
11
|
has_one_attached :attachment
|
12
12
|
has_one_purgable :attachment
|
13
13
|
|
14
|
+
acts_as_tagged
|
14
15
|
acts_as_slugged
|
15
16
|
|
16
17
|
log_changes if respond_to?(:log_changes)
|
@@ -41,7 +42,7 @@ module Effective
|
|
41
42
|
end
|
42
43
|
|
43
44
|
def redirect_path
|
44
|
-
"/
|
45
|
+
"/link/#{slug}"
|
45
46
|
end
|
46
47
|
|
47
48
|
def target
|
@@ -5,4 +5,6 @@
|
|
5
5
|
= f.url_field :url, required: false, hint: 'The link if redirecting to a website or specific page'
|
6
6
|
= f.file_field :attachment, required: false, hint: 'The attachment of the permalink if redirecting to a document, image or other file'
|
7
7
|
|
8
|
+
= render 'effective/tags/fields', f: f
|
9
|
+
|
8
10
|
= effective_submit(f)
|
data/config/routes.rb
CHANGED
@@ -14,7 +14,7 @@ EffectivePages::Engine.routes.draw do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
scope module: 'effective' do
|
17
|
-
get '/
|
17
|
+
get '/link/:slug', to: 'permalinks#redirect', as: :permalink_redirect
|
18
18
|
|
19
19
|
match '*id', to: 'pages#show', via: :get, as: :page, constraints: lambda { |req|
|
20
20
|
Effective::Page.find_by_slug_or_id(req.path_parameters[:id] || '/').present?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|