ragamuffins 1.0.1 → 1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f2d7183e404968d0b1af61fdf9d98e17dfee79d
|
4
|
+
data.tar.gz: c859e711102bf549167027eb0b446a80d8495e1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4ad58fd003e24f84c49da00ee8ad8ebf640f8b01ebc50a1d957e1294acd706f8515a36d25ea8d709ae2cf5fa7fb064e624d8513536e95937963e916bfb94ccc
|
7
|
+
data.tar.gz: eed07c3f4d0fc61eed5f7fd4d6758265a994757b79fa0f893db10959a4c83abd1c0b42aad247784c556d01d318c489d9cc357c2b24369ff4f7321948220b651c
|
@@ -3,17 +3,14 @@ module Ragamuffins
|
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
5
|
included do
|
6
|
-
# self.send(:include, Ragamuffins::ConfigurationMethods)
|
7
6
|
|
8
7
|
# Fetch all the deleted ids from the backend, and return them as an array
|
9
|
-
# Model.
|
10
|
-
|
11
|
-
|
12
|
-
return [] if ids == nil
|
8
|
+
# Model.deleted_ids = []
|
9
|
+
def self.show_deleted_ids(ids = [])
|
10
|
+
return [] if ids == nil
|
13
11
|
|
14
|
-
|
15
|
-
|
16
|
-
RUBY
|
12
|
+
ids.collect{|s| s.to_i} - self.where("#{table_name}.id IN (?)", ids).map(&:id)
|
13
|
+
end
|
17
14
|
end
|
18
15
|
end
|
19
16
|
end
|
data/lib/ragamuffins/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ragamuffins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Norman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
168
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.2.
|
169
|
+
rubygems_version: 2.2.2
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: Find your orphans
|
@@ -211,3 +211,4 @@ test_files:
|
|
211
211
|
- spec/factories/test_models.rb
|
212
212
|
- spec/models/test_model_spec.rb
|
213
213
|
- spec/spec_helper.rb
|
214
|
+
has_rdoc:
|