effective_pages 3.7.5 → 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: 12ebae24a21118905027a123fc24c1aa143fa29ac620a26b8d1a0964ce6f36a2
4
- data.tar.gz: f378d124c7424af3a066822d7e5e934d2990f96d2944f08b7d1af74297361033
3
+ metadata.gz: 7e8d314134e576fdb6c96d83e22d4532aaee08d191ed61f1c51a5c9a7778db68
4
+ data.tar.gz: cc6ee51377b8996b53c28a81c342366914f9372f32945fb7127950aa5b311235
5
5
  SHA512:
6
- metadata.gz: d1d43621e023081d4ba38ff1856c02a595e703e44cfeb4e3bdca72d6466ae6a0bd41739b1883071fb02893486e760655504a2c998e6ca97d2ca153a12f3bd792
7
- data.tar.gz: 06ad24244baec759f9b12214db6f26bc1e44a06348f86bd5b7c7588881133bd2c356f4d20c322592322bd473647748bdbbed5f3f210a88e3eb9ad6a3b545f93e
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
@@ -20,7 +20,7 @@ module Effective
20
20
  public
21
21
 
22
22
  def to_s
23
- name
23
+ model_name.human
24
24
  end
25
25
  end
26
26
  end
@@ -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.5'.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.5
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-26 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