Sha256: ee38a03b9bbbdeb0c9ea4396546cee652310a62eae82813455b9fc2c07a5ca57
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
class TestModel def to_param object_id end def change_frequency 'monthly' end def priority 0.8 end def updated_at Time.at(1000000000) end class << self def count_for_sitemap self.find_for_sitemap.size end def num_items 10 end def find_for_sitemap(options={}) instances = [] num_times = options.delete(:limit) || self.num_items num_times.times { instances.push(self.new) } instances end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
alexrabarts-big_sitemap-0.5.0 | test/fixtures/test_model.rb |
alexrabarts-big_sitemap-0.5.1 | test/fixtures/test_model.rb |
big_sitemap-0.5.1 | test/fixtures/test_model.rb |