url_security 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +6 -6
  2. data/lib/url_security/version.rb +1 -1
  3. metadata +1 -1
data/README.md CHANGED
@@ -24,19 +24,19 @@ Or install it yourself as:
24
24
 
25
25
  Write the following line in your model.rb file:
26
26
 
27
- include UrlSecurity
27
+ include UrlSecurity
28
28
 
29
29
  Write the following method in same model:
30
30
 
31
- def to_param
32
- encrypt id
33
- end
31
+ def to_param
32
+ encrypt id
33
+ end
34
34
 
35
35
  Write the following line in your controller:
36
- @student = Student.find Student.decrypt(params[:id])
36
+ @student = Student.find Student.decrypt(params[:id])
37
37
 
38
38
  instead of:
39
- @student = Student.find(params[:id])
39
+ @student = Student.find(params[:id])
40
40
 
41
41
  ## Contributing
42
42
 
@@ -1,3 +1,3 @@
1
1
  module UrlSecurity
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_security
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: