search for: remotesx5model

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

Did you mean: remotesx3model
2009 Mar 17
11
Refactoring module
Dear all Please see the following module, In module SX3 SX4 and SX5 have similar class Tasklist, but inherit from different class. I will use the following code to connect to different data sources RemoteSX3Model.establish_connection sx3_hash RemoteSX4Model.establish_connection sx4_hash RemoteSX5Model.establish_connection sx5_hash How can I refactor my code in module to look simpler? Thank you very much -------------------------------------------------------- class RemoteSX3Model < ActiveRecord::Base def readonly? true end end class RemoteSX4Model < ActiveRecord::Base def rea...