lib/daddy.rb in daddy-0.1.9 vs lib/daddy.rb in daddy-0.1.11

- old
+ new

@@ -1,7 +1,14 @@ # coding: UTF-8 -module Daddy - require "daddy/railtie" if defined?(Rails) +if defined?(Rails) + require "daddy/railtie" +else + Dir[File.join(File.dirname(__FILE__), 'tasks', '*.rake')].each do |f| + load f + end end -require 'sql_builder' \ No newline at end of file +require 'sql_builder' + +module Daddy +end