archive_tree 1.0.0 → 1.0.1
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.md +5 -1
- data/lib/archive_tree.rb +6 -0
- metadata +3 -3
data/README.md
CHANGED
@@ -26,6 +26,10 @@ rails plugin install git://github.com/GnomesLab/archive_tree.git
|
|
26
26
|
</pre>
|
27
27
|
|
28
28
|
|
29
|
+
## Demo (live)
|
30
|
+
|
31
|
+
If you would like to see this gem in action please visit [Gnomeslab blog](http://gnomeslab.com/blog) at http://gnomeslab.com/blog.
|
32
|
+
|
29
33
|
## Examples
|
30
34
|
|
31
35
|
Imagine that you have a blog application with Posts. Great!
|
@@ -76,7 +80,7 @@ draw_archive_tree #=> defaults to: :model_sym => :post, :route => :posts_path, :
|
|
76
80
|
|
77
81
|
## Documentation
|
78
82
|
|
79
|
-
This gem's documentation documentation is available at http://rubydoc.info/github/GnomesLab/archive_tree/
|
83
|
+
This gem's documentation documentation is available at [rubydoc.info](http://rubydoc.info/github/GnomesLab/archive_tree/master/frames)
|
80
84
|
|
81
85
|
|
82
86
|
## License
|
data/lib/archive_tree.rb
CHANGED
@@ -16,6 +16,8 @@
|
|
16
16
|
#
|
17
17
|
# TODO: This module should undergo a query optimization. Furthermore, an ORM abstraction.
|
18
18
|
module ArchiveTree
|
19
|
+
require 'active_record'
|
20
|
+
require 'action_view'
|
19
21
|
|
20
22
|
autoload :Core, 'archive_tree/core'
|
21
23
|
autoload :ActionViewExtensions, 'archive_tree/action_view_extensions'
|
@@ -33,3 +35,7 @@ module ArchiveTree
|
|
33
35
|
attr_accessor :date_field
|
34
36
|
|
35
37
|
end # ArchiveTree
|
38
|
+
|
39
|
+
# Extending Rails Classes
|
40
|
+
ActiveRecord::Base.send :extend, ArchiveTree if defined?(ActiveRecord::Base)
|
41
|
+
ActionView::Base.send :include, ArchiveTree::ActionViewExtensions if defined?(ActionView::Base)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Diogo Almeida
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-14 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|