Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't pass a logger as a default value for an attribute #19

Open
mustmodify opened this issue Feb 23, 2015 · 0 comments
Open

Can't pass a logger as a default value for an attribute #19

mustmodify opened this issue Feb 23, 2015 · 0 comments

Comments

@mustmodify
Copy link
Owner

class Retryer
has_value :logger, :default => Rails.logger
end

results in:
TypeError:
can't dump File

stack trace:

   # ../gems/ruby-1.9.3-p448/gems/rspec-mocks-2.13.1/lib/rspec/mocks/extensions/marshal.rb:5:in `dump'
   # ../gems/ruby-1.9.3-p448/gems/rspec-mocks-2.13.1/lib/rspec/mocks/extensions/marshal.rb:5:in `dump_with_mocks'
   # ../gems/ruby-1.9.3-p448/gems/valuable-0.9.9/lib/valuable/utils.rb:33:in `deep_duplicate_of'
   # ../gems/ruby-1.9.3-p448/gems/valuable-0.9.9/lib/valuable/utils.rb:25:in `block in initial_copy_of_attributes'
   # ../gems/ruby-1.9.3-p448/gems/valuable-0.9.9/lib/valuable/utils.rb:20:in `each'
   # ../gems/ruby-1.9.3-p448/gems/valuable-0.9.9/lib/valuable/utils.rb:20:in `initial_copy_of_attributes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant