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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d18ef9985f5eb47f5aeb698353bc6640046f645
|
4
|
+
data.tar.gz: 9abbddd5eeb3bccf5b62f5083358449f7decb478
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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