effective_pages 3.14.4 → 3.14.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f4ca8ad0bb1bb831be0f03301313fa887bc919fccec2b11165a3a9afcc51996
4
- data.tar.gz: 8b2c1fae2b168203653bbf329bc782564cd550a128d04c6263038d96a34b266b
3
+ metadata.gz: c4c5c010eb0062bb4d36b19ab478e5e64c53bc187e40a05f86474653efe16cbb
4
+ data.tar.gz: 5efeb5d54ae12c0bb645543a2be34384d501bae3dbba777fe085906f3fd9a034
5
5
  SHA512:
6
- metadata.gz: cbe18e31381ce52238a75dd3161ad255260f6da6b5a9323a19f93d78e8f7ac37c2160f36b71732bc477c5fd9e48d044841484d3f97a85402cd8e9f72a1d5916e
7
- data.tar.gz: ef30e6d96b2567ecae882c171896f47f775dda75ff2cc6650556dcaef448488f382082073c2adbd37c444a7d8692b17560a3f078a4b53a1f7186c642bbcbcbf3
6
+ metadata.gz: 635d94a58f8b5940e9176215c43fcff111a27c355a599859e1e4aea47a5127fea8ce6ea5fdc7d2e32563a4a36cce44b8f4a023fc5bca6edb3e2a8044e6e4dd79
7
+ data.tar.gz: 3fd3d0e922af563574c46034c7ba111e4935b0cde3b840b9f26af85ccb77e5c9f1f19deb7160a9837852f87b65fe3263e72c1775c4cea2d1d9a309a0cf76fa73
@@ -50,6 +50,10 @@ module Effective
50
50
  "/link/#{slug}"
51
51
  end
52
52
 
53
+ def published?
54
+ true
55
+ end
56
+
53
57
  def target
54
58
  url.present? ? :url : :attachment
55
59
  end
@@ -39,6 +39,10 @@ class CreateEffectivePages < ActiveRecord::Migration[6.0]
39
39
  end
40
40
 
41
41
  add_index :pages, :slug, :unique => true
42
+ add_index :pages, [:published_start_at, :published_end_at], if_not_exists: true
43
+ add_index :pages, :menu, if_not_exists: true
44
+ add_index :pages, :menu_parent_id, if_not_exists: true
45
+ add_index :pages, :menu_position, if_not_exists: true
42
46
 
43
47
  create_table :page_banners do |t|
44
48
  t.string :name
@@ -89,6 +93,9 @@ class CreateEffectivePages < ActiveRecord::Migration[6.0]
89
93
  t.timestamps
90
94
  end
91
95
 
96
+ add_index :carousel_items, :carousel, if_not_exists: true
97
+ add_index :carousel_items, :position, if_not_exists: true
98
+
92
99
  create_table :alerts, if_not_exists: true do |t|
93
100
  t.boolean :enabled
94
101
 
@@ -118,6 +125,9 @@ class CreateEffectivePages < ActiveRecord::Migration[6.0]
118
125
 
119
126
  t.timestamps
120
127
  end
128
+
129
+ add_index :taggings, [:taggable_type, :taggable_id], if_not_exists: true
130
+ add_index :taggings, :tag_id, if_not_exists: true
121
131
  end
122
132
 
123
133
  end
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '3.14.4'.freeze
2
+ VERSION = '3.14.5'.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.14.4
4
+ version: 3.14.5
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: 2025-04-24 00:00:00.000000000 Z
11
+ date: 2025-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails