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 +4 -4
- data/lib/rails_latest.rb +6 -0
- data/lib/rails_latest/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37ef7fd4340846e023c7357b16989ff9e0dc786e
|
4
|
+
data.tar.gz: a73814906d19de93c712b4781dc7f2f1f71dab78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60cc9a17b5acd2b300918752cfeffd507440d4615a8914089727d346ff862e73b93ee1b3bd25788b3a8ca253593eb0c5502466d3241c930ddf9917bbc26c2fbd
|
7
|
+
data.tar.gz: 920b608f7f12ea251ef78e7150d91f5d31bf28bc1d423e365198a030d245d61c5807e83ec354eb7bb55c2815331e6316219b32e018730c3343269eeec5d13338
|
data/lib/rails_latest.rb
CHANGED
@@ -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
|
data/lib/rails_latest/version.rb
CHANGED