web-console-param 0.0.3 → 0.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: 9599c9b4517645994ab0608d5475e9dd78dfca9b
4
- data.tar.gz: a031095490041e72cc764862036dc4a588ce54aa
3
+ metadata.gz: ff03f19f436dbfd6b7975167e45fac968c2f19ad
4
+ data.tar.gz: ee4c828818b0c1987a887a99a167cd4476c155a0
5
5
  SHA512:
6
- metadata.gz: e0ec5039c65f58b0c77021ff7229cf9366357a40fa7aefbc2a401cdfb3d56b60fd91be92d6b3a8811274491597caaa1813cdb9128e30946dac3bd3f8bf239f8f
7
- data.tar.gz: 648b51b037e1615fd75bfb08fe2d55f4abd4a348de4c70182e6d6315024a6afd438d3b24ea9d38058c7955da1c415eaabae9722ff71377561124ffca9c49b546
6
+ metadata.gz: 6e36e88685641527c723e2f634d2d04b03228aa668529dc0d7c3fbc558eaeeedf82e42569583849df66e1caedb08f110cbcece3675c816c87b2cfbeec7bb6d42
7
+ data.tar.gz: 6d312dd3f7fdc7f6e899d21d6271ff140be3e6f43479ec9bacdbf78aedfafbd1c3138c84f58ca1a98a47916cd78687f0138877ef75a294f3699817fc331ef594
@@ -0,0 +1 @@
1
+ require 'web_console_param'
@@ -1,13 +1,13 @@
1
1
  require 'rails/railtie'
2
2
 
3
3
  module WebConsoleParam
4
- class Railtie < Rails::Railtie
5
- config.after_initialize do
4
+ class Railtie < ::Rails::Railtie
5
+ initializer 'web_console_param.configure_controller' do
6
6
  WebConsoleFilter = ->(controller) do
7
7
  controller.console if controller.params[:web_console]
8
8
  end
9
9
 
10
- ApplicationController.before_action(WebConsoleFilter) if defined?(WebConsole)
10
+ ActionController::Base.before_action(WebConsoleFilter) if defined?(WebConsole)
11
11
  end
12
12
  end
13
- end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module WebConsoleParam
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web-console-param
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Burenstam
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-24 00:00:00.000000000 Z
11
+ date: 2015-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,6 +53,7 @@ files:
53
53
  - README.md
54
54
  - Rakefile
55
55
  - config/initializers/web_console_param.rb
56
+ - lib/web-console-param.rb
56
57
  - lib/web_console_param.rb
57
58
  - lib/web_console_param/railtie.rb
58
59
  - lib/web_console_param/version.rb