polyblock 0.6.5 → 0.6.6

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: c5dc04ffac100c1393193ef0527c9f52a1ef8b90
4
- data.tar.gz: 3df28f45810201a502319984949c0df83984fefd
3
+ metadata.gz: 0e9c80813939f43e45ab12628693341c83fd727b
4
+ data.tar.gz: 785940216a5cbfb110d343a92acae27b3f1b98c2
5
5
  SHA512:
6
- metadata.gz: ec3652f9cfe8d68b86ead861a46e3cc01d46d5cde862f5e6a1ee2a3c08993167f44cdac6c5b5340d048d7677ef97898bd3c189767990b70d82b7bc5091c5bdd1
7
- data.tar.gz: 8da33c09dd70e23360d182c646ece70ad8d5ec1fc603c1a098910d895e7c1d4c9dcedf1fb698660c2957510e7539ba0d2aaadf896a9fa226d8b3ca30be9c70bf
6
+ metadata.gz: 807464d2de415afaa6ab3ef0ce7ff8f4b1c308a2a46387a1c2d5f8d1ed09009d0863920d0af7a63097f9b3a9c04e78188c0708d39f4da6e785c7036abf4cb314
7
+ data.tar.gz: 51c04cddf1c1e6a6bb0797297a6b365a24f6d1c9e078ab56ee6eab29d6946d02dc67fe3e86af5287d4a1a5d1d0c0602edb86e76086b5f8bf4123609691686a43
@@ -3,7 +3,7 @@ require 'json'
3
3
  module Polyblock
4
4
  class Block < ActiveRecord::Base
5
5
 
6
- belongs_to :contentable, :polymorphic => true, :dependent => :destroy
6
+ belongs_to :contentable, :polymorphic => true
7
7
 
8
8
  def self.import(pbs)
9
9
  outputs = pbs.map do |pb|
@@ -7,7 +7,7 @@ module Polyblock
7
7
 
8
8
  module ClassMethods
9
9
  def has_polyblock(name, options={})
10
- defaults = {:class_name => "Polyblock::Block", :as => :contentable}
10
+ defaults = {:class_name => "Polyblock::Block", :as => :contentable, :dependent => :destroy}
11
11
  has_one name, -> { where(:name => name) }, defaults.merge(options)
12
12
  accepts_nested_attributes_for name
13
13
  include Polyblock::HasPolyblock::LocalInstanceMethods
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.6.5"
2
+ VERSION = "0.6.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith