rails-trash 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rails-trash.rb +4 -0
  2. metadata +2 -2
@@ -26,6 +26,10 @@ module Rails
26
26
  unscoped.where(deleted_at.not_eq(nil))
27
27
  end
28
28
 
29
+ def restore(id)
30
+ deleted.find(id).restore
31
+ end
32
+
29
33
  end
30
34
 
31
35
  module InstanceMethods
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rails-trash
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.1
5
+ version: 1.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Francesc Esplugas
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-05 00:00:00 Z
13
+ date: 2011-06-14 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails