lib/sid.rb in sid-0.0.2 vs lib/sid.rb in sid-0.0.3
- old
+ new
@@ -1,11 +1,13 @@
require 'sid/class_methods'
require 'sid/instance_methods'
module Sid
- def has_sid(scoped_by)
- cattr_accessor :scoped_by
- self.scoped_by = scoped_by
+ def has_sid(scoped_by, options={})
+ cattr_accessor :sid_config
+ self.sid_config={}
+ self.sid_config[:scoped_by] = scoped_by
+ self.sid_config[:sid_column] = options[:sid_column] || :sid
include Sid::ClassMethods
include Sid::InstanceMethods
end
end