effective_assets 1.9.7 → 1.9.8

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: f844afcc30e740f6f73b888bec13c3391da00e23
4
- data.tar.gz: 0a945aea1f9d6b90125703ea61828bc34f60bd42
3
+ metadata.gz: 6be178f6d429097f2f0eacb3ef3bc163639c0083
4
+ data.tar.gz: 26d939f795922ab2c3e1141cf715968a093272f8
5
5
  SHA512:
6
- metadata.gz: 3ffd082fa6f99b7b1523936658e0d7601d843aa61a60cd210d260465c0c550a733fa261b47a63dfe6243bd9daeadfa175c20dd6258ea1b7002620bb004fb8e27
7
- data.tar.gz: 22c142e0b8db400fa6c44a8fdb4d7f190268d8e5ec2a0c94d193bf50862d74cbd4916baf238e7237b9ec5893b347fae24ea30767b7b706b5b7cd252ed43e31b3
6
+ metadata.gz: dc22d53aeeee705a5842efc215f55b1977eb387c63429431bedcc6dccb2e32679cb245767701ef4aa5afd8091cff11762253466bc1d6eeafc962ec3375a80267
7
+ data.tar.gz: c9265c7b18d4dbc296183ebfcced94533758c1fce8c68613e8549db0ca406ca318d0d9a5904ea8a45ae33c8e2e8ee3da2fa153d517d01d9719bb6c3bfed36ae4
@@ -12,7 +12,7 @@ module Effective
12
12
  # box :string, :default => 'assets' # This is essentially a category
13
13
  # end
14
14
 
15
- default_scope -> { includes(:asset).order("\"#{EffectiveAssets.attachments_table_name.to_s}\".\"position\" ASC, \"#{EffectiveAssets.attachments_table_name.to_s}\".\"asset_id\" ASC") }
15
+ default_scope -> { includes(:asset).order(:position).order(:asset_id) }
16
16
 
17
17
  validates :asset_id, presence: true
18
18
  validates :position, presence: true, numericality: true
@@ -1,4 +1,4 @@
1
- class CreateEffectiveAssets < ActiveRecord::Migration
1
+ class CreateEffectiveAssets < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  create_table <%= @assets_table_name %> do |t|
4
4
  t.string :title
@@ -1,3 +1,3 @@
1
1
  module EffectiveAssets
2
- VERSION = '1.9.7'.freeze
2
+ VERSION = '1.9.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.7
4
+ version: 1.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-23 00:00:00.000000000 Z
11
+ date: 2017-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails