ibrain-core 0.1.4 → 0.1.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0ba188722fa8379256471e8051ddff9b168466a2db3237d114c7d72f7432a59
|
|
4
|
+
data.tar.gz: a3f32c79ddb8421b25c83d4dd72aa47e8434859fe0cd45f35223a37651a6260b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb0361b7b0107f852212ff6e357dc41e7511a834bcc2c68941649e32125e20386193fd53f5fcac04d10659e17a965e7e8a9bba60b5790b4163ba8be091eea504
|
|
7
|
+
data.tar.gz: 737ef5f5f922fd55ab9970cd0cb2a6563adb09dcfcffa73b155395afeda228b0aed3cd77b73c6348592718adf4850b7bae67af01ae604378775de1d4dac61e6d
|
data/app/models/ibrain/base.rb
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
IGNORE_ATTRIBUTES = %w(id created_at updated_at)
|
|
4
|
+
|
|
3
5
|
class Ibrain::Base < Ibrain::ApplicationRecord
|
|
4
6
|
include ActionView::Helpers::DateHelper
|
|
5
7
|
|
|
@@ -49,5 +51,9 @@ class Ibrain::Base < Ibrain::ApplicationRecord
|
|
|
49
51
|
def adjust_date_for_cdt(datetime)
|
|
50
52
|
datetime.in_time_zone('UTC')
|
|
51
53
|
end
|
|
54
|
+
|
|
55
|
+
def permitted_attributes
|
|
56
|
+
column_names.reject { |k| IGNORE_ATTRIBUTES.include?(k) }
|
|
57
|
+
end
|
|
52
58
|
end
|
|
53
59
|
end
|
|
@@ -55,7 +55,7 @@ module Ibrain
|
|
|
55
55
|
Would you like to install it? (Y/n)"))
|
|
56
56
|
|
|
57
57
|
@plugins_to_be_installed << 'ibrain-auth' unless system('gem list | grep ibrain-auth')
|
|
58
|
-
@plugin_generators_to_run <<
|
|
58
|
+
@plugin_generators_to_run << "ibrain:auth:install --with-ridgpole=#{options[:with_ridgepole]}"
|
|
59
59
|
end
|
|
60
60
|
end
|
|
61
61
|
|
data/lib/ibrain/core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ibrain-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tai Nguyen Van
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-12-
|
|
11
|
+
date: 2021-12-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord-session_store
|