Closed Javierchik closed 13 years ago
If you're going to use Garb::Model you should be designing individual classes that have specific metrics and dimensions. Think of it as a Rails ActiveRecord class, you don't use one class to interact with every table in your database clearing out the column definitions and recreating every time you want to use it.
Hi, i run into a problem when performing this...
Controller.... data = GoogleData.load(profile, options) data2 = GoogleData.load(profile, options2) data3 = GoogleData.load(profile, options3)
Model... class GoogleData extend Garb::Model
class << self
end end end
the thing is that dimensions and metrics accumulate and need to be clean every time that i perform from the controller. Is this approach correct?... it is something similar with some function called clean_filters ...
Thanks