lib/ajax/helpers.rb in ajax-0.1.4 vs lib/ajax/helpers.rb in ajax-0.1.5

- old
+ new

@@ -1,15 +1,15 @@ -require 'ajax/helpers/request_helper' -require 'ajax/helpers/robot_helper' -require 'ajax/helpers/url_helper' +Dir[File.join(File.dirname(__FILE__), 'helpers', '*')].map do |file| + require file +end module Ajax #:nodoc: module Helpers #:nodoc: def self.included(klass) klass.class_eval do extend RequestHelper extend RobotHelper - extend UrlHelper - end + extend UrlHelper + end end end end \ No newline at end of file