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 `undefined method blank?' #38

Merged

Conversation

ukstudio
Copy link
Contributor

@ukstudio ukstudio commented May 1, 2015

Other fix method.

- if (method == :post || method == :put) && options[:body].blank?
+ if (method == :post || method == :put) && (options[:body].nil? || options[:body].empty?)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 98.28% when pulling d754054 on ukstudio:require_active_support_core_ext into c411bb2 on dashofcode:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 98.28% when pulling d754054 on ukstudio:require_active_support_core_ext into c411bb2 on dashofcode:master.

@forest
Copy link
Contributor

forest commented May 1, 2015

Thanks. blank? is one of those methods I always forget isn't core Ruby. Too much Rails development.

forest added a commit that referenced this pull request May 1, 2015
@forest forest merged commit 1423ead into ProductPlan:master May 1, 2015
@ukstudio ukstudio deleted the require_active_support_core_ext branch May 2, 2015 06:52
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.

None yet

3 participants