effective_pages 3.7.6 → 3.7.8
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: 9afdd8eb4b1d378a4b39eadc3325e838e8ce70b1af6bdfb520c95a0d42b8b2ea
|
4
|
+
data.tar.gz: 06402fc18cfa14a6db2dcc791e497b00d0977fedcbac4294bea4238723d6bce5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11e71da9e8cf5711b52df703fc3ff934c323bf07fc0abc264b877069029c9371ba2e5e7bc17e783ab0edb555af50711f68c9dddfe5aea67915572730593316c1
|
7
|
+
data.tar.gz: ca68767a16dbac14fdc57690297d273a4674d6b89d9ceac64d7ac73af8b0408f39cf00fdf48e6d68d0ba94cbb574e5dbeb1f0de71ead02aa4a899874f6a11836
|
@@ -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.8
|
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-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|