-
Notifications
You must be signed in to change notification settings - Fork 5
default option fix #20
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ def initialize(*args) | |
|
||
def attributes | ||
self.class.tainbox_attributes.map do |attribute| | ||
[attribute, send(attribute)] if respond_to?(attribute, true) | ||
[attribute, send(attribute)] if respond_to?(attribute) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Private reader should not be exposed. Also you are breaking back-comp here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
He is actually fixing this. Now only public readers will show up in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably it's better to compare
For me it's not really clear why There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry, you are correct here |
||
end.compact.to_h | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect semantic.
define_reader
(at least for back-compatibility)private_reader
or somethingattribute :name, reader: :private
serves this case best