rexport 1.0.1 → 1.0.2
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: 7bc0f21f26d12d42e97f2a1fd8a0c9228becce29b46ed07327ca8fd5369b9deb
|
4
|
+
data.tar.gz: 98d65ab17ade5855ec9ef73ad220239c2f99aeb64329cc133b29c04f40f540b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5da93e49137f2f965206a014bcf21dadb52d47b76adf83135cffb4f0406a1e3ffbc9c99dbcbaffdb8f3f0b5785dc74495c37cb7dc300c9631c8fd8cd18072436
|
7
|
+
data.tar.gz: 6f5a80568333c860813ed938b027f1d79e6a70cec53024e888eaa58044db638c359db5967f868377fa211c782673a1adeabd83d7ff59501362c3f296ad4cb6dc
|
@@ -1,10 +1,14 @@
|
|
1
1
|
module Rexport
|
2
2
|
module ExportFiltersControllerMethods
|
3
3
|
def destroy
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
export_filter.destroy
|
5
|
+
redirect_to export_filter.export
|
6
|
+
end
|
7
|
+
|
8
|
+
private
|
9
|
+
|
10
|
+
def export_filter
|
11
|
+
@export_filter ||= ExportFilter.find(params[:id])
|
8
12
|
end
|
9
13
|
end
|
10
14
|
end
|
@@ -1,28 +1,28 @@
|
|
1
1
|
module Rexport
|
2
2
|
module ExportItemsControllerMethods
|
3
3
|
def edit
|
4
|
-
|
4
|
+
export_item
|
5
5
|
end
|
6
|
-
|
6
|
+
|
7
7
|
def update
|
8
|
-
|
9
|
-
|
10
|
-
if @export_item.update_attributes(export_item_params)
|
11
|
-
redirect_to export_path(@export_item.export), notice: 'ExportItem was successfully updated.'
|
8
|
+
if export_item.update_attributes(export_item_params)
|
9
|
+
redirect_to export_path(export_item.export), notice: 'ExportItem was successfully updated.'
|
12
10
|
else
|
13
11
|
render :edit
|
14
12
|
end
|
15
13
|
end
|
16
|
-
|
14
|
+
|
17
15
|
def destroy
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
redirect_to export_path(@export_item.export)
|
16
|
+
export_item.destroy
|
17
|
+
redirect_to export_path(export_item.export)
|
22
18
|
end
|
23
|
-
|
19
|
+
|
24
20
|
private
|
25
|
-
|
21
|
+
|
22
|
+
def export_item
|
23
|
+
@export_item ||= ExportItem.find(params[:id])
|
24
|
+
end
|
25
|
+
|
26
26
|
def export_item_params
|
27
27
|
params.require(:export_item).permit(:name)
|
28
28
|
end
|
data/lib/rexport/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Baldwin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-07-
|
12
|
+
date: 2019-07-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|