categoryz3 0.8.3 → 0.8.4

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: 1bab30ca8be2697ea91b071adcb7d8c60c625a4c
4
- data.tar.gz: 00527e279b51c129aa004bb8354588b86695624a
3
+ metadata.gz: 31d94bc085b8197e984842edead40d0cb58158b6
4
+ data.tar.gz: 1d28d5d98e907e6e7a70c02207b7bdb60331a28a
5
5
  SHA512:
6
- metadata.gz: dc98fcf303c6775a6da09eec7e9df890899f28223b3bf15bf9b3d536623f789d13648fceb06910370b38eafb32f54f0f7a0bad436c7564a343d6ad4da56c578f
7
- data.tar.gz: 4bc3d7a7a7b67132c697806d6b9d604159de65e2d78272fd5bcd6d0efc32c4b5191109be0be435691cf54b9749136620f830b0e9933414afe584b647d70bf265
6
+ metadata.gz: 6df493751a559ac9fdad6bb224aaf38012b4bf371b09e9ea91e47e87e0515b381ff532d67802c47182031980396b12ef561f24c5d934307a07541fe7f0d4bdc2
7
+ data.tar.gz: e8a7421f8c3577c0e9e4292f1a8326d907bb3f747760b89333d8b66d6eada234c28a685aba151c73664d9f91b9ac2a47556f4eb3b1f9a7f3c4850c787b226022
@@ -9,8 +9,7 @@ module Categoryz3
9
9
 
10
10
  scope :root_categories, -> { where(parent_id: nil) }
11
11
  scope :parent_categories, -> { root_categories }
12
- attr_accessible :name, :parent, :parent_id
13
-
12
+
14
13
  before_update :mark_as_dirty_if_parent_changed
15
14
  after_update :update_children_if_parent_changed
16
15
 
@@ -7,6 +7,5 @@ module Categoryz3
7
7
  validates :category, :master_item, :categorizable, presence: true
8
8
  validates :category_id, uniqueness: { scope: [:categorizable_type, :categorizable_id] }
9
9
  validates_with Categoryz3::Validators::ChildItemCategoryValidator
10
- attr_accessible :master_item, :categorizable
11
10
  end
12
11
  end
@@ -8,7 +8,6 @@ module Categoryz3
8
8
  validates :category_id, uniqueness: { scope: [:categorizable_type, :categorizable_id] }
9
9
 
10
10
  after_create :create_child_items
11
- attr_accessible :categorizable
12
11
 
13
12
  # Public: Destroy the child items and recreate them
14
13
  #
@@ -1,3 +1,3 @@
1
1
  module Categoryz3
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: categoryz3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Scolari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-05 00:00:00.000000000 Z
11
+ date: 2013-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.0.3
129
+ rubygems_version: 2.0.0
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Simple categorization to ActiveRecord models.