categoryz3 0.2 → 0.3
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.
- data/README.rdoc +0 -1
- data/app/models/categoryz3/category.rb +1 -1
- data/lib/categoryz3/version.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
= Categoryz3
|
|
2
2
|
{<img src="https://secure.travis-ci.org/tscolari/categoryz3.png" />}[http://travis-ci.org/tscolari/categoryz3]
|
|
3
|
-
{<img src="https://gemnasium.com/tscolari/categoryz3.png" />}[https://gemnasium.com/tscolari/categoryz3]
|
|
4
3
|
{<img src="https://codeclimate.com/badge.png" />}[https://codeclimate.com/github/tscolari/categoryz3]
|
|
5
4
|
|
|
6
5
|
Simple categorization to ActiveRecord models.
|
|
@@ -7,7 +7,7 @@ module Categoryz3
|
|
|
7
7
|
validates :name , presence: true
|
|
8
8
|
|
|
9
9
|
scope :parent_categories, -> { where(parent_id: nil) }
|
|
10
|
-
attr_accessible :name, :parent
|
|
10
|
+
attr_accessible :name, :parent, :parent_id
|
|
11
11
|
|
|
12
12
|
# Public: Returns the full categories path from the root category until this category
|
|
13
13
|
#
|
data/lib/categoryz3/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: categoryz3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.3'
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-11-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -131,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
131
131
|
version: '0'
|
|
132
132
|
segments:
|
|
133
133
|
- 0
|
|
134
|
-
hash:
|
|
134
|
+
hash: 214583827626684549
|
|
135
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
none: false
|
|
137
137
|
requirements:
|
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
140
|
version: '0'
|
|
141
141
|
segments:
|
|
142
142
|
- 0
|
|
143
|
-
hash:
|
|
143
|
+
hash: 214583827626684549
|
|
144
144
|
requirements: []
|
|
145
145
|
rubyforge_project:
|
|
146
146
|
rubygems_version: 1.8.24
|