rails_latest 0.0.1 → 0.0.2

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: 83aa2a17e460caa1b9a465aeca1a15fe1e7bb26e
4
- data.tar.gz: cb12b5b877c68921a582e7c472638f7cb717c84c
3
+ metadata.gz: 37ef7fd4340846e023c7357b16989ff9e0dc786e
4
+ data.tar.gz: a73814906d19de93c712b4781dc7f2f1f71dab78
5
5
  SHA512:
6
- metadata.gz: 1029b97e4ddbd33c30c7d5c2614d37b70b3af1d9704f9d610f0d4fa4b365da8f49a0007d87789a3440699a9a56df7df584281c935e233d80bc3d32c76d88d53c
7
- data.tar.gz: 04ef0dc8ec79c1dffdaf1b1d0e977298baded96fcfccc16e3fd058a87163a923a244997533aa21a00c1450f68425236c3e0b6c9aa917b232a16e80d5d65be6a9
6
+ metadata.gz: 60cc9a17b5acd2b300918752cfeffd507440d4615a8914089727d346ff862e73b93ee1b3bd25788b3a8ca253593eb0c5502466d3241c930ddf9917bbc26c2fbd
7
+ data.tar.gz: 920b608f7f12ea251ef78e7150d91f5d31bf28bc1d423e365198a030d245d61c5807e83ec354eb7bb55c2815331e6316219b32e018730c3343269eeec5d13338
@@ -15,6 +15,12 @@ module RailsLatest
15
15
  "skip_#{filter}_filter": "use #skip_#{filter}_action")
16
16
  end
17
17
  end
18
+ ActionController::RequestForgeryProtection::ClassMethods.class_eval do
19
+ redefine_method(:protect_from_forgery) do |options = {}|
20
+ self.request_forgery_protection_token ||= :authenticity_token
21
+ prepend_before_action :verify_authenticity_token, options
22
+ end
23
+ end
18
24
  end
19
25
  end
20
26
  end
@@ -1,3 +1,3 @@
1
1
  module RailsLatest
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_latest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih