Skip to content
This repository

Rails 3.2 ActiveSupport::Concern deprecation fix #11

Merged
merged 1 commit into from about 2 years ago

2 participants

Viacheslav Molokov Jorge Calás
Viacheslav Molokov

No description provided.

Jorge Calás calas merged commit 40b174f into from January 21, 2012
Jorge Calás calas closed this January 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 21, 2012
Viacheslav Molokov Fixed Rails 3.2 ActiveSupport::Concern deprecation warning e793094
This page is out of date. Refresh to see the latest.
16  lib/rspec/rails/example/cell_example_group.rb
@@ -39,16 +39,14 @@ def render_cell(*args)
39 39
       end
40 40
     end
41 41
 
42  
-    module InstanceMethods
43  
-      attr_reader :controller, :routes
  42
+    attr_reader :controller, :routes
44 43
 
45  
-      def method_missing(method, *args, &block)
46  
-        # Send the route helpers to the application router.
47  
-        if @routes && @routes.named_routes.helpers.include?(method)
48  
-          @controller.send(method, *args, &block)
49  
-        else
50  
-          super
51  
-        end
  44
+    def method_missing(method, *args, &block)
  45
+      # Send the route helpers to the application router.
  46
+      if @routes && @routes.named_routes.helpers.include?(method)
  47
+        @controller.send(method, *args, &block)
  48
+      else
  49
+        super
52 50
       end
53 51
     end
54 52
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.