ocean-rails 5.0.0 → 5.0.1

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
  SHA1:
3
- metadata.gz: 64668e1ca09bd9c947e446be490c552d737030a6
4
- data.tar.gz: 5e7bee38908ac4bb03ac768d34aab6b4fb78ad48
3
+ metadata.gz: 5d18ef9985f5eb47f5aeb698353bc6640046f645
4
+ data.tar.gz: 9abbddd5eeb3bccf5b62f5083358449f7decb478
5
5
  SHA512:
6
- metadata.gz: 2803f8a963a01bd1b3e81e625d9aaad670e406c97c9637467634f2a0c8b42e0cc3b2a0496a0f19d2831c76b3a09dbebf2c9de41d2c16edce900fb0c24eb22843
7
- data.tar.gz: 9c299822c58f17b33d131c1e635ad51dc9aabf8ce58f8c3103e0a4c5c514febe612d220026dc9689c0a4a1c17dc39132bd9372c25829e2fae24c7a3ccdd652bc
6
+ metadata.gz: e56cf525959cd6d2cd35c12410a08358ad9ed2c8af664fa7ad67b6fa813991054c4e86b3d824091d0a9bf54dc759f1a596ceed28cad1ce3d4667bed2aa700d24
7
+ data.tar.gz: b76cc473a32dd662ec5e44741d8516446a4679e6f7dacf9c3046a6fae32227d3613e18015374e8bca9733789b88db892f6ba0776459a16cac6ab2fc4c18c6e0d
@@ -6,6 +6,14 @@ class OceanScaffoldGenerator < Rails::Generators::NamedBase #:nodoc: all
6
6
  inject_into_class "#{Rails.root}/app/models/#{singular_name}.rb",
7
7
  class_name.constantize,
8
8
  "
9
+ self.primary_key = 'id'
10
+
11
+ def initialize(*)
12
+ super
13
+ self.id ||= SecureRandom.uuid
14
+ end
15
+
16
+
9
17
  ocean_resource_model index: [:name], search: :description
10
18
 
11
19
 
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "5.0.0"
2
+ VERSION = "5.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson