siphon 0.2.1 → 0.2.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: c9b86838aae3f13ab3623d7b189a31f090114cfa
4
- data.tar.gz: cdf710190096aa2ffacfbd902da5d315306ab1b0
3
+ metadata.gz: 51bfb661a1ed609248473ff45e69e817022fbc25
4
+ data.tar.gz: c896428ba84008b95fe610bc65ccc1a27b37f608
5
5
  SHA512:
6
- metadata.gz: a6ba1bfa8034b566f0732840e720707d687128ab1b2face86e980616588c26e243ac7d150ad281c8dc60f14c5eaf86ec997d9fe6d9f08f568b603dc2d770e59b
7
- data.tar.gz: d60003907e7b8b60377c3c0c8274df899070124e1c87a6101721df4c84b6fd41914bca021e8f6c04147719654a42f591bcad305c1a6cee7ee10e1ace5b641976
6
+ metadata.gz: 442f96c18a00c1b582b35b893275cb097f01093191091b2ea2605a27f599e9fad0459cac841326d0bf0b18f1f2d09927793251d7ba60488374d2fcf13265728e
7
+ data.tar.gz: 2464e22a87bec7d26a58f32af5d605925f5927dad9df2e778ddaf07ebc8686f5fdc8a874eecc88602c8030a792202e635db0887ef0c315e1b6497319dd188002
data/CHANGELOG.md CHANGED
@@ -8,7 +8,8 @@
8
8
  * The ModelSearch can now respond_to `siphon_attributes`
9
9
  * Boilerplate provides all the stuff ModelSearch needs...
10
10
  * ...hence the generated ModelSearch is now minimal
11
+ * Boilerplate also gives users a `ransack` macro to set ransack attributes
11
12
 
12
- ## Siphone 0.1.3
13
+ ## Siphon 0.1.3
13
14
 
14
15
  * handle time & dates arguments for scope from issue #2
@@ -66,7 +66,7 @@ module Siphon
66
66
  def siphonize(model, model_name: nil, table_name: nil)
67
67
  name = model_name || "#{model}Search"
68
68
  self.model_name= ActiveModel::Name.new(self, nil, name)
69
- self.table_name= Asset.table_name
69
+ self.table_name= model.table_name
70
70
  @ransack_set ||= []
71
71
  end
72
72
 
@@ -1,3 +1,3 @@
1
1
  module Siphon
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -7,7 +7,7 @@ require "siphon"
7
7
  require "pry"
8
8
 
9
9
  require "virtus"
10
- require "active_support"
10
+ require "active_support/all"
11
11
  require "active_model"
12
12
  require "class/formobj"
13
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siphon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Sistovaris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-15 00:00:00.000000000 Z
11
+ date: 2016-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport