Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 239 Bytes
class SeoTestResourceMethodModel < ActiveRecord::Base
set_table_name :seo_test_models
#use a method as a resource id
acts_as_seo_friendly :seo_friendly_id_field => :seo_id, :resource_id => :foo
def foo
self.name
end
end