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

Fix for #80 #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daniel-sullivan
Copy link

Fix for conditional attribute inclusion using the 0.2.1 conditional_fields.rb

@@ -49,6 +51,8 @@ def attribute(name, options = {}, &block)
_register_condition(field_condition_blocks, name, options)
end



Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra blank line detected.

@@ -49,6 +51,8 @@ def attribute(name, options = {}, &block)
_register_condition(field_condition_blocks, name, options)
end


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra blank line detected.

class << self
attr_accessor :field_condition_blocks
attr_accessor :link_condition_blocks
end
self.field_condition_blocks ||= {}
self.link_condition_blocks ||= {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra empty line detected at block body end.

@codecov
Copy link

codecov bot commented Aug 9, 2017

Codecov Report

Merging #81 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #81   +/-   ##
=======================================
  Coverage   99.47%   99.47%           
=======================================
  Files          12       12           
  Lines         379      379           
=======================================
  Hits          377      377           
  Misses          2        2
Impacted Files Coverage Δ
...sonapi/serializable/resource/conditional_fields.rb 96% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ecab17...c5fdc93. Read the comment docs.

@beauby beauby changed the title Fix for https://github.com/jsonapi-rb/jsonapi-serializable/issues/80 Fix for #80 Aug 10, 2017
@beauby
Copy link
Member

beauby commented Aug 10, 2017

Hi @daniel-sullivan – thanks for this PR! I'm currently on the road but will take a closer look asap 👍

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.

3 participants