lib/mite-rb.rb in mite-rb-0.2.3 vs lib/mite-rb.rb in mite-rb-0.2.4

- old
+ new

@@ -1,7 +1,7 @@ -require 'activesupport' -require 'activeresource' +require 'active_support' +require 'active_resource' # The official ruby library for interacting with the RESTful API of mite, # a sleek time tracking webapp. module Mite @@ -117,10 +117,16 @@ def last(options={}) find_every(options).last end end + + private + + def query_string2(options) + options.is_a?(String) ? "?#{options}" : super + end end class SingletonBase < Base include ResourceWithoutWriteAccess @@ -154,15 +160,6 @@ end end $:.unshift(File.dirname(__FILE__)) - -require 'mite/customer' -require 'mite/project' -require 'mite/service' -require 'mite/time_entry' -require 'mite/time_entry_group' -require 'mite/tracker' -require 'mite/user' -require 'mite/myself' -require 'mite/account' \ No newline at end of file +Dir[File.join(File.dirname(__FILE__), "mite/*.rb")].each { |f| require f }