search for: real_class

Displaying 1 result from an estimated 1 matches for "real_class".

Did you mean: readclass
2006 May 08
0
Including common code among multiple web services issue?
...this and it works great. ---------------------------------------------------------------------------------- class XyzService < WebService web_service_api XyzApi .... service specific methods go here... end class WebService < ActionWebService::Base def find_newer_than(created_at) real_class.find(:all, :conditions => [''created_at >= ?'', TimeZone[''London''].unadjust(created_at)]) end ... def real_class Class.const_get(self.class.to_s.gsub(/Service$/, '''')) end ... end ---------------------------...