Module: Annotate

Defined in:
lib/annotate.rb,
lib/annotate/railtie.rb

Defined Under Namespace

Classes: Railtie

Class Method Summary collapse

Class Method Details

.load_tasksObject



7
8
9
10
11
12
13
14
15
# File 'lib/annotate.rb', line 7

def self.load_tasks
  if File.exists?('Rakefile')
    load 'Rakefile'
    Dir[File.join(File.dirname(__FILE__), 'tasks', '**/*.rake')].each { |rake| load rake }
    return true
  else
    return false
  end
end