ixport 0.4.0 → 0.4.1
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: 16c99636a4d8ef113f4f79a6329f2dd4863cc8ade7ad53b50c988738da2e3701
|
|
4
|
+
data.tar.gz: 54549f7009304e78c9d53de1719061c6763a36c1c721619af015d077e02ecf42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c023605435d19ea4ca5c6477f1684cd4d42a49200cfd2370e211d697ca705a8850f3071919cb9a8df89362e1e47a1235c1eaa087b0e6f7bf6dfceadcf4c160c3
|
|
7
|
+
data.tar.gz: 5da35e3a802248a422c462ba7d8f30876e3ce2504156e06ef13d251da191b5571f788e838be400eadab03e31c38fd7f5bdb1c2c832db48f2721feb02b414d0c2
|
|
@@ -4,6 +4,9 @@ module Ixport
|
|
|
4
4
|
class ApplicationController < Ixport.configuration.base_controller.constantize
|
|
5
5
|
before_action { send(Ixport.configuration.authentication_method) }
|
|
6
6
|
layout -> { Ixport.configuration.layout }
|
|
7
|
+
helper AppRoutesHelper
|
|
8
|
+
|
|
9
|
+
before_action { AppRoutesHelper.define_app_route_helpers }
|
|
7
10
|
|
|
8
11
|
private
|
|
9
12
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ixport
|
|
4
|
+
module AppRoutesHelper
|
|
5
|
+
def self.define_app_route_helpers
|
|
6
|
+
@app_route_helpers_defined ||= begin
|
|
7
|
+
(Rails.application.routes.named_routes.helper_names - Ixport::Engine.routes.named_routes.helper_names).each do |name|
|
|
8
|
+
define_method(name) { |*args, **options| main_app.public_send(name, *args, **options) }
|
|
9
|
+
end
|
|
10
|
+
true
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
data/lib/ixport/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ixport
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tyler Schneider
|
|
@@ -97,6 +97,7 @@ files:
|
|
|
97
97
|
- app/controllers/ixport/mappings_controller.rb
|
|
98
98
|
- app/controllers/ixport/previews_controller.rb
|
|
99
99
|
- app/controllers/ixport/runs_controller.rb
|
|
100
|
+
- app/helpers/ixport/app_routes_helper.rb
|
|
100
101
|
- app/helpers/ixport/imports_helper.rb
|
|
101
102
|
- app/models/ixport/application_record.rb
|
|
102
103
|
- app/models/ixport/csv_writer.rb
|