forbidium 0.1.0 → 0.1.1

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: d49ef2c415c56614ba5b0a9e1b95ed4e46166830
4
- data.tar.gz: 4f3737cd6bd4ba2b20e023d9d644e21a47eb45a1
3
+ metadata.gz: 59821c7594bf97b284c62e7aa145dc365161161d
4
+ data.tar.gz: 37368987c1693f4ad22e8530d1ec732dab2ddf5d
5
5
  SHA512:
6
- metadata.gz: b564c7eac506a5532e0106cf75ffae36a2cdd834ccdda2ec42f8dd46253000b01de5f875ea8b1532c7d83fe88c922990f7226ecc78cab88348c524d7d3ddd085
7
- data.tar.gz: 59291af8d1d00907195ddf011a02fad75040152a95e226986fa0c039f9af3a077c90fc5b0d475dac96548a625273d727f094df260ca5e38702ce58d1e3117751
6
+ metadata.gz: b03ca40a721b2f672c744b125cdd499c8df77eef5a3a8bf18028db18bb868537e2ea7dcfd82acb6555a785ef17c2b0be7e3ce5ab52aac10eed184f7cf0c87b46
7
+ data.tar.gz: fd19f56a5a396a0286b4b66bbaeaeb1a300998bf46fa43b79392e7d45947f69828ae2e32b43d80c5f0b4389a0ffd9762e841efe0b536b1975ea4abf9cc176d76
@@ -0,0 +1,9 @@
1
+ require 'rails/railtie'
2
+
3
+ module Forbidium
4
+ class Railtie < ::Rails::Railtie
5
+ after_initialize :action_controller do
6
+ ActionController::Parameters.include Forbidium
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Forbidium
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
data/lib/forbidium.rb CHANGED
@@ -2,3 +2,5 @@ require 'forbidium/version'
2
2
 
3
3
  require 'forbidium/forbidium'
4
4
  require 'forbidium/core_ext/hash'
5
+
6
+ require 'forbidium/railtie' if defined? Rails
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forbidium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. Simon Borg
@@ -66,6 +66,7 @@ files:
66
66
  - lib/forbidium/core_ext/hash.rb
67
67
  - lib/forbidium/forbid.rb
68
68
  - lib/forbidium/forbidium.rb
69
+ - lib/forbidium/railtie.rb
69
70
  - lib/forbidium/version.rb
70
71
  homepage: https://github.com/msimonborg/forbidium
71
72
  licenses: