```ruby
require 'rails'
require 'ixtlan/guard'
require 'logger'

module Ixtlan
  module Guard
    class Railtie < Rails::Railtie

      config.before_configuration do |app|
        app.config.guard = 
          Ixtlan::Guard::Guard.new(:guard_dir => File.join(Rails.root, "app", "guards")) 
      end
      
      config.after_initialize do |app|
        logger = app.config.logger || Rails.logger || Logger.new(STDERR)
        app.config.guard.logger = logger unless defined?(Slf4r)
        begin
          app.config.guard.setup
        rescue Ixtlan::Guard::GuardException => e
          logger.warn e.message
        end
      end
    end
  end
end
```

Revert "removed obsolete and confusing source_path"
user
```ruby
require 'rails'
require 'ixtlan/guard'
require 'logger'

module Ixtlan
  module Guard
    class Railtie < Rails::Railtie

      config.before_configuration do |app|
        app.config.guard = 
          Ixtlan::Guard::Guard.new(:guard_dir => File.join(Rails.root, "app", "guards")) 
      end
      
      config.after_initialize do |app|
        logger = app.config.logger || Rails.logger || Logger.new(STDERR)
        app.config.guard.logger = logger unless defined?(Slf4r)
        begin
          app.config.guard.setup
        rescue Ixtlan::Guard::GuardException => e
          logger.warn e.message
        end
      end
      
      config.generators do
        require 'rails/generators'
        require 'rails/generators/rails/controller/controller_generator'
        require 'rails/generators/erb/scaffold/scaffold_generator'
        Rails::Generators::ControllerGenerator.hook_for :ixtlan, :type => :boolean, :default => true do |controller|
          invoke controller, [ class_name, actions ]
        end
        Erb::Generators::ScaffoldGenerator.source_paths.insert(0, File.expand_path('../../generators/ixtlan/templates', __FILE__))
      end
    end
  end
end
```
assistant