trailblazer-rails 1.0.3 → 1.0.4

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: 74040c0e4e22998edd7881fdc6dc2c5459e7733b
4
- data.tar.gz: 8cca0a9f3e44fcd46621c86e6b0707be12c43c1b
3
+ metadata.gz: a00d731d3bb61523513f95f173bcc30e78199b0a
4
+ data.tar.gz: 6d198db0cad2bea4e9661e3a9aec5b4cad3fc091
5
5
  SHA512:
6
- metadata.gz: 8d8ba62aae5a3586aec14c67b3fdbe078d1ff409ccb789c70783e82e0a7333901ea641ce532112c5028bd8488ad7bc22ce1c9b776c4a36117874f46acdaedc7a
7
- data.tar.gz: aa6b3ce1039755ac84d4faf63bf023e4aa7a10f57893a1affa052702b179e0f3f1c45c180b1e723206c8eb633b512c2fda410ae981f27406cfae514df34b7970
6
+ metadata.gz: f12e95e33a107baf386047f45b378033111e7f493ac3f98a725422f4382fc2cf3460f1251a5b1a4338789018a060989d6eb0b659d75f676850f573813f35ebaf
7
+ data.tar.gz: ae5ec2d715325622fcaf417e48d3d5bef0f3e4d457f375e844c564fbaf2a7b45a7441929f790b9b1424922f2e44d4d9ab93d80026583b395a2a467e06d9ea79e
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.4
2
+
3
+ * Make `Railtie::extend_application_controller!` overwriteable via a module.
4
+
1
5
  # 1.0.3
2
6
 
3
7
  * Return the computed application controller constant from `Railtie::extend_application_controller!` to make `compat` code simpler.
@@ -68,13 +68,17 @@ module Trailblazer
68
68
  end
69
69
  end
70
70
 
71
- def self.extend_application_controller!(app)
72
- application_controller = app.config.trailblazer.application_controller.to_s.constantize
71
+ module ExtendApplicationController
72
+ def extend_application_controller!(app)
73
+ application_controller = app.config.trailblazer.application_controller.to_s.constantize
73
74
 
74
- application_controller.send :include, Trailblazer::Rails::Controller
75
- application_controller.send :include, Trailblazer::Rails::Controller::Cell if defined?(::Cell)
75
+ application_controller.send :include, Trailblazer::Rails::Controller
76
+ application_controller.send :include, Trailblazer::Rails::Controller::Cell if defined?(::Cell)
76
77
 
77
- application_controller
78
+ application_controller
79
+ end
78
80
  end
81
+
82
+ extend ExtendApplicationController
79
83
  end
80
84
  end
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  module Rails
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-20 00:00:00.000000000 Z
11
+ date: 2017-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.5.2
195
+ rubygems_version: 2.6.12
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Convenient Rails support for Trailblazer.