Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 371 Bytes
$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
require 'pp'
require 'scam'
class FeedTemplate
include Scam
sorted_by :title
attr_accessor :title
end
FeedTemplate.create(:id => 1, :title => 'Twitter')
FeedTemplate.create(:id => 2, :title => 'Dribble')
# Sorted by title instead of id so dribble will be first and twitter second
pp FeedTemplate.all