ragamuffins 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c4135a1a60283bed763fd6a83ec1104dc817735
4
- data.tar.gz: a32a05de981ba406bedb117c6356c9faf4b0299b
3
+ metadata.gz: 4f2d7183e404968d0b1af61fdf9d98e17dfee79d
4
+ data.tar.gz: c859e711102bf549167027eb0b446a80d8495e1c
5
5
  SHA512:
6
- metadata.gz: 7a343514290df5b1e698117ea6a149914ed2c0eafd986068ed130ab8604e649d24f5e9c10b352d0fee57ce19ce9ab2e8cf89ec9921baf4de7141dd59e2f9b02a
7
- data.tar.gz: ffadd2990bb770ae3644a497954ff0b04ff4753fda3f84f22dbbaf39a460b02e706e30dd504670a54b4b85f71fb7fcf6c19370d188b446a077d743d110cb9ce8
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.delted_ids = []
10
- eval <<-RUBY
11
- def self.show_deleted_ids(ids = [])
12
- return [] if ids == nil
8
+ # Model.deleted_ids = []
9
+ def self.show_deleted_ids(ids = [])
10
+ return [] if ids == nil
13
11
 
14
- ids.collect{|s| s.to_i} - self.where('id IN (?)', ids).map(&:id)
15
- end
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
@@ -1,3 +1,3 @@
1
1
  module Ragamuffins
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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-04-17 00:00:00.000000000 Z
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.0
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: