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: 9e7cca51681b4c15a785e7e6cd0b8bc431dc1209d7c5723b4d34fe1b9830505e
4
- data.tar.gz: 23b194a85d402b4703d72b404e70ab9917f205d081fbef946a187d36112754ad
3
+ metadata.gz: 7e8d314134e576fdb6c96d83e22d4532aaee08d191ed61f1c51a5c9a7778db68
4
+ data.tar.gz: cc6ee51377b8996b53c28a81c342366914f9372f32945fb7127950aa5b311235
5
5
  SHA512:
6
- metadata.gz: ede6f5b8c0c7708539847272ec016d44c47fc542d8effe4d6fb5022369af1c141f4a42fc25105f942422858f3336315db29594152eadc07c6d139ba12d7bdbd2
7
- data.tar.gz: 928de1989eabc9067b2b37e979a50b5c4c1aa02d4936c32e2067ecb8087f02ae6e52c7a54eaac897af874585bb4adf0e278986dc56df5c0a0c69b6d2dc3064ee
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
- "/permalinks/#{slug}"
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 '/permalinks/:slug', to: 'permalinks#redirect', as: :permalink_redirect
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?
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.7.6'.freeze
2
+ VERSION = '3.7.7'.freeze
3
3
  end
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.6
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-27 00:00:00.000000000 Z
11
+ date: 2023-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails