Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

allow rails 3.2.x

  • Loading branch information...
commit 34413a7d8002c7c8416c34d7b17085875bdd237c 1 parent 2ee192b
Christian Meier authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 lib/ixtlan/guard/railtie.rb
5 lib/ixtlan/guard/railtie.rb
@@ -26,8 +26,9 @@ class Railtie < Rails::Railtie
26 26
27 27 app.config.guard = Ixtlan::Guard::Guard.new(options)
28 28 end
29   -
30   - config.generators do
  29 +
  30 + gmethod = config.respond_to?(:generators)? :generators : :app_generators
  31 + config.send(gmethod) do
31 32 require 'rails/generators'
32 33 require 'rails/generators/rails/controller/controller_generator'
33 34 Rails::Generators::ControllerGenerator.hook_for :guard, :type => :boolean, :default => true do |controller|

0 comments on commit 34413a7

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