Skip to content

Commit

Permalink
Handle the possibility of nil options in PublicAttributesMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
reidab committed Mar 5, 2014
1 parent f957424 commit 1e2a1f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mixins/open_conference_ware/public_attributes_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def public_attributes
end

def serializable_hash(options={})
if (options.keys & [:only, :except, :methods, :include]).present?
if options && (options.keys & [:only, :except, :methods, :include]).present?
super(options)
else
public_attributes
Expand Down

0 comments on commit 1e2a1f9

Please sign in to comment.