web-console-param 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/lib/web_console_param.rb +1 -1
- data/lib/web_console_param/railtie.rb +13 -0
- data/lib/web_console_param/version.rb +1 -1
- metadata +2 -2
- data/lib/web_console_param/engine.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9599c9b4517645994ab0608d5475e9dd78dfca9b
|
4
|
+
data.tar.gz: a031095490041e72cc764862036dc4a588ce54aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0ec5039c65f58b0c77021ff7229cf9366357a40fa7aefbc2a401cdfb3d56b60fd91be92d6b3a8811274491597caaa1813cdb9128e30946dac3bd3f8bf239f8f
|
7
|
+
data.tar.gz: 648b51b037e1615fd75bfb08fe2d55f4abd4a348de4c70182e6d6315024a6afd438d3b24ea9d38058c7955da1c415eaabae9722ff71377561124ffca9c49b546
|
data/lib/web_console_param.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rails/railtie'
|
2
|
+
|
3
|
+
module WebConsoleParam
|
4
|
+
class Railtie < Rails::Railtie
|
5
|
+
config.after_initialize do
|
6
|
+
WebConsoleFilter = ->(controller) do
|
7
|
+
controller.console if controller.params[:web_console]
|
8
|
+
end
|
9
|
+
|
10
|
+
ApplicationController.before_action(WebConsoleFilter) if defined?(WebConsole)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web-console-param
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Burenstam
|
@@ -54,7 +54,7 @@ files:
|
|
54
54
|
- Rakefile
|
55
55
|
- config/initializers/web_console_param.rb
|
56
56
|
- lib/web_console_param.rb
|
57
|
-
- lib/web_console_param/
|
57
|
+
- lib/web_console_param/railtie.rb
|
58
58
|
- lib/web_console_param/version.rb
|
59
59
|
- web-console-param-0.0.1.gem
|
60
60
|
- web_console_param.gemspec
|