safety_cone 1.2.1 → 1.3.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: a447441d031ea4ec10004385ad15c9b1384b58e7
4
- data.tar.gz: b20cf03ed8eead6e027bcd4d45f83c6639508a37
3
+ metadata.gz: 102091580bdb530fd6392034da0e7a7d897b22e9
4
+ data.tar.gz: 0593e4bd7e20bf2e37146fa9d1c79dcbc0819420
5
5
  SHA512:
6
- metadata.gz: f81969b68b9689512c5f30ef04cfce81a8720bec032e84d924715d0b40dc518c971997be98c7abe008db52c66c6502474cfb0940b5a047677bee6a698ccb6638
7
- data.tar.gz: a728d30caf477517dcb8a66154f75347b2ee8ebf3b498776bc9f49819f350b44720655eec45466158437a6f934be6587a761ab544da53efdb9c87bb746e0f4f6
6
+ metadata.gz: 6b73a108b34e24183faf078e66e59af2ea078f4c67e6dba1930f3e6c20af03d25ffa3148b99ec3d0c2953ba0541d8d6d3e75c317a44aa07f7c0db63ed26119b4
7
+ data.tar.gz: 7136fba7edd7a9df1be88f8867f69c63d13e5f08e34376f7fb9ebc1e5b58d52ced8b0b6aa84d0be62e431ae6fa987e9390e069b693b5c60826822e34ba13ab65
@@ -5,7 +5,11 @@ module SafetyCone
5
5
  # Method to include to base class.
6
6
  # This lets declare a before filter here
7
7
  def self.included(base)
8
- base.before_filter :safety_cone_filter
8
+ if Rails.version.to_i >= 5
9
+ base.before_action :safety_cone_filter
10
+ else
11
+ base.before_filter :safety_cone_filter
12
+ end
9
13
  end
10
14
 
11
15
  # Filter method that does the SafetyCone action
@@ -1,3 +1,3 @@
1
1
  module SafetyCone
2
- VERSION = '1.2.1'.freeze
2
+ VERSION = '1.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safety_cone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boost