Skip to content

Commit

Permalink
Adding name=nil to not allow nil. Not sure why it was there before
Browse files Browse the repository at this point in the history
  • Loading branch information
zachinglis committed Jul 23, 2008
1 parent f10b82a commit 8db19e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/crummy.rb
Expand Up @@ -7,7 +7,7 @@ module ClassMethods
# add_crumb("Business") { |instance| instance.business_path }
#
# Works like a before_filter so +:only+ and +except+ both work.
def add_crumb(name=nil, *args)
def add_crumb(name, *args)
options = args.extract_options!
url = args.first
raise ArgumentError, "Need more arguments" unless name or options[:record] or block_given?
Expand Down

0 comments on commit 8db19e9

Please sign in to comment.