Skip to content
This repository
Browse code

make Apotomo::Widget derive from Cell::Rails for now to make it compa…

…tible with cells 3.8.
  • Loading branch information...
commit 8693546d37680660b1a10adf07fbb8a0198340cc 1 parent 22dfad9
Nick Sutterer authored December 21, 2011
7  lib/apotomo/widget.rb
@@ -35,11 +35,8 @@ module Apotomo
35 35
   #
36 36
   #   def update(evt)
37 37
   #     @cheese = Cheese.find evt[:cheese_id]
38  
-  class Widget < Cell::Base
39  
-    
40  
-    DEFAULT_VIEW_PATHS = [
41  
-      File.join('app', 'widgets'),
42  
-    ]
  38
+  class Widget < Cell::Rails
  39
+    DEFAULT_VIEW_PATHS = [File.join('app', 'widgets')]
43 40
     
44 41
     include Hooks
45 42
     
2  test/widget_test.rb
@@ -120,7 +120,7 @@ class WidgetTest < ActiveSupport::TestCase
120 120
     # internal_methods:
121 121
     should "not list internal methods in action_methods" do
122 122
       # FIXME: puts "WTF is wrong again with AC.action_methods godamn, I HATE this magic shit!"
123  
-      unless Cells.rails3_1?
  123
+      unless Cells.rails3_1_or_more?
124 124
         assert_equal [], Class.new(Apotomo::Widget).action_methods
125 125
       end
126 126
     end

0 notes on commit 8693546

Please sign in to comment.
Something went wrong with that request. Please try again.