class CocoaPod < ActiveRecord::Base
  default_scope { order('stars DESC') }
  
  after_initialize :init_stars
  
  def init_stars
    self.stars ||= 0
  end
  
  def dependencies
    []
  end
  
  def serializable_hash
    h = super
    h['pushed_at'] = h['pushed_at'].to_s
    h['created_at'] = h['created_at'].to_s
    h['updated_at'] = h['updated_at'].to_s
    h
  end
end

class CocoaPod < ActiveRecord::Base
  default_scope { order('stars DESC') }
  
  after_initialize :init_stars
  
  def init_stars
    self.stars ||= 0
  end
  
  def dependencies
    []
  end
  
  def serializable_hash
    h = super
    h['pushed_at'] = h['pushed_at'].to_i
    h['created_at'] = h['created_at'].to_i
    h['updated_at'] = h['updated_at'].to_i
    h
  end
end

Clean serializable hash for cocoa pod.
Clean serializable hash for cocoa pod.
