Skip to content

Refactoring authorizations#2019

Merged
deivid-rodriguez merged 2 commits intomasterfrom
refactoring/authorizations
Oct 11, 2017
Merged

Refactoring authorizations#2019
deivid-rodriguez merged 2 commits intomasterfrom
refactoring/authorizations

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

🎩 What? Why?

A couple of refactorings in action authorization so they are easier to understand.

📌 Related Issues

None.

📋 Subtasks

None.

📷 Screenshots (optional)

None.

👻 GIF

dylan2

@ghost ghost added the in-progress label Oct 10, 2017
mrcasals
mrcasals previously approved these changes Oct 10, 2017
Previously the handler name was kept in both the data hash and a
specific `handler_name` attribute, and these attributes were both
accessed inconsistenly. I stopped writing & reading the handler name to
and from the data hash, and always use the attribute accesor.
No unnecessary fetch, no double access to hash value, no unnecessary
`to_a` since AR delegates `find` to `Array` when a block is passed.
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 11, 2017

Codecov Report

Merging #2019 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2019      +/-   ##
==========================================
+ Coverage   98.48%   98.48%   +<.01%     
==========================================
  Files        1145     1145              
  Lines       25775    25780       +5     
==========================================
+ Hits        25384    25389       +5     
  Misses        391      391

@deivid-rodriguez deivid-rodriguez merged commit 850c0d8 into master Oct 11, 2017
@ghost ghost removed the in-progress label Oct 11, 2017
@deivid-rodriguez deivid-rodriguez deleted the refactoring/authorizations branch October 11, 2017 10:38
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

Successfully merging this pull request may close these issues.

2 participants