lib/mongoid/ids/options.rb in mongoid-ids-0.1.1 vs lib/mongoid/ids/options.rb in mongoid-ids-0.1.7
- old
+ new
@@ -28,14 +28,10 @@
def skip_finders?
@options[:skip_finders]
end
- def override_to_param?
- @options[:override_to_param]
- end
-
def pattern
@options[:pattern] ||= \
case @options[:contains].to_sym
when :alphanumeric
"%s#{@options[:length]}"
@@ -67,11 +63,10 @@
{
:length => 4,
:retry_count => 3,
:contains => :alphanumeric,
:field_name => :_id,
- :skip_finders => false,
- :override_to_param => true,
+ :skip_finders => false
}.merge(options)
end
end
end
end