tb_redirects 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/models/tb_redirect.rb +4 -1
- data/lib/tb_redirects/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c5794e7a4afcdd9b77bc96e1fa4e5ba0e24c8f053651ccb0eb3d58fff149906a
|
4
|
+
data.tar.gz: ae74ab3f527137512614933614f060ae952f2ebf4b4583df54ae0cf012b24713
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54da901e7526ac9971a68845c10c898b878a5856d307f96a9e8195d3d1ad2841270833152338b99cd1e4f18e205cc507f9bbf72ea5e86f5b8922db0f14cad878
|
7
|
+
data.tar.gz: e084fd5c551afa849e8de9ac0e4de170b76bb26c6eb7ec2d57258e25787c45aa263839a8247c06d261651c760c65e4feb5310dd2b9cb75eb50b19de8509f336e
|
data/app/models/tb_redirect.rb
CHANGED
@@ -2,7 +2,10 @@ class TbRedirect < ActiveRecord::Base
|
|
2
2
|
scope :ordered, -> { order('source desc') }
|
3
3
|
scope :search, ->(term) { where('source LIKE ?', "%#{term}%") }
|
4
4
|
|
5
|
-
belongs_to :owner,
|
5
|
+
belongs_to :owner,
|
6
|
+
polymorphic: true,
|
7
|
+
inverse_of: :tb_redirects,
|
8
|
+
optional: true
|
6
9
|
|
7
10
|
validates :source, :destination, :created_by, presence: true
|
8
11
|
validates :source, uniqueness: true
|
data/lib/tb_redirects/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tb_redirects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Woods
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tb_core
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
252
|
version: '0'
|
253
253
|
requirements: []
|
254
254
|
rubyforge_project:
|
255
|
-
rubygems_version: 2.
|
255
|
+
rubygems_version: 2.7.7
|
256
256
|
signing_key:
|
257
257
|
specification_version: 4
|
258
258
|
summary: Simple redirect management for Twice Baked
|