edgarj 4.00.03 → 4.00.04

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: 7e863f90317a8326d618bfc387ad2799a0d6a7a4
4
- data.tar.gz: 9e2b1f75a1136c4fd11b424233f36eaa8da089d6
3
+ metadata.gz: 6e354eb22c54ed1a8d2b4f36fafb43d3dc4f3af4
4
+ data.tar.gz: 753e8b133475f62e837f19fb584a6616ce217b82
5
5
  SHA512:
6
- metadata.gz: 702d49d1054fa9c09ced97d392d93b2595cafd329b5e0eded2318b442b0242d6412c6aab77c6d4654314dc8e73f0f9fbd0b2b72b2bc8524741f6a6175c9976e0
7
- data.tar.gz: 5b9fa816460ee059a8b79c4126b7baccfdedcc72c751080a2e5bd60163ef25d2270c0060748f4edb342da5b9171ea7d7aaf6d65776c75c21d49d5092a8b81282
6
+ metadata.gz: e7916712333a9a729e84114bfe33d5f228f7e0a18c848d6f319ddb2fd6ff3936cbd7daa33bb147a5bcbfc0381ffd4041bee92ac707084916815c132c51dcb63d
7
+ data.tar.gz: 720a8b32847a8d53cfd7b3d7fa6c7c7d77b03a443cb67415f7ec87e338aba799bb9de9b4fa89084fe3ad79d9a5a8792283a0f942b72ab163ab39652bab387450
@@ -139,6 +139,7 @@ module Edgarj
139
139
  # NOTE2: valid? after create() calls validate_on_update. This is not
140
140
  # an expected behavior. So, new, valid?, then save.
141
141
  @record = model.new(permitted_params(:create))
142
+ @record_saved = @record # copy for possible later use
142
143
  on_upsert
143
144
  #upsert_files
144
145
  raise ActiveRecord::RecordNotSaved if !@record.valid?
@@ -191,6 +192,7 @@ module Edgarj
191
192
  # ModelPermission::DELETE on this controller is required.
192
193
  def destroy
193
194
  m = model.find(user_scoped.find(params[:id]).id)
195
+ @record_saved = m # copy for possible later use
194
196
  m.destroy
195
197
 
196
198
  prepare_list
@@ -1,3 +1,3 @@
1
1
  module Edgarj
2
- VERSION = "4.00.03"
2
+ VERSION = "4.00.04"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edgarj
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.00.03
4
+ version: 4.00.04
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fuminori Ido
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-26 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -359,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
359
359
  version: '0'
360
360
  requirements: []
361
361
  rubyforge_project:
362
- rubygems_version: 2.2.2
362
+ rubygems_version: 2.5.2
363
363
  signing_key:
364
364
  specification_version: 4
365
365
  summary: Scaffold with Ajax, search, sort, 'belongs_to' popup, and more.