viewtastic 0.1.1 → 0.1.2
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/History.txt +5 -0
- data/lib/viewtastic.rb +1 -1
- data/lib/viewtastic/activation.rb +1 -8
- data/lib/viewtastic/base.rb +1 -1
- data/rails/init.rb +2 -0
- metadata +4 -3
- data/init.rb +0 -1
data/History.txt
ADDED
data/lib/viewtastic.rb
CHANGED
@@ -4,14 +4,6 @@ module Viewtastic
|
|
4
4
|
# Borrowed from Authlogic.
|
5
5
|
#
|
6
6
|
def self.included(klass) # :nodoc:
|
7
|
-
if defined?(::ApplicationController)
|
8
|
-
raise "Viewtastic is trying to prepend a before_filter in ActionController::Base to active itself" +
|
9
|
-
", the problem is that ApplicationController has already been loaded meaning the before_filter won't get copied into your" +
|
10
|
-
" application. Generally this is due to another gem or plugin requiring your ApplicationController prematurely, such as" +
|
11
|
-
" the resource_controller plugin. The solution is to require Viewtastic before these other gems / plugins. Please require" +
|
12
|
-
" viewtastic first to get rid of this error."
|
13
|
-
end
|
14
|
-
|
15
7
|
klass.prepend_before_filter :activate_viewtastic
|
16
8
|
end
|
17
9
|
|
@@ -21,3 +13,4 @@ module Viewtastic
|
|
21
13
|
end
|
22
14
|
end
|
23
15
|
end
|
16
|
+
ActionController::Base.send(:include, Viewtastic::Activation)
|
data/lib/viewtastic/base.rb
CHANGED
data/rails/init.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: viewtastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Istvan Hoka
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-03 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -23,13 +23,14 @@ extra_rdoc_files:
|
|
23
23
|
- LICENSE
|
24
24
|
- README.md
|
25
25
|
files:
|
26
|
+
- History.txt
|
26
27
|
- LICENSE
|
27
|
-
- init.rb
|
28
28
|
- lib/duck_punches/array/each_with_presenter.rb
|
29
29
|
- lib/viewtastic.rb
|
30
30
|
- lib/viewtastic/activation.rb
|
31
31
|
- lib/viewtastic/base.rb
|
32
32
|
- lib/viewtastic/test_case.rb
|
33
|
+
- rails/init.rb
|
33
34
|
- README.md
|
34
35
|
has_rdoc: true
|
35
36
|
homepage: http://github.com/ihoka/viewtastic
|
data/init.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Rails.configuration.load_paths << "app/presenters"
|