Skip to content

Commit

Permalink
Ensure options is always a hash
Browse files Browse the repository at this point in the history
#17802 added a line that called []
on options and if nil, it would raise NoMethodError where it should have
returned nil
  • Loading branch information
bdunne committed Aug 28, 2018
1 parent 7550098 commit fcad896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/custom_button.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class CustomButton < ApplicationRecord
has_one :resource_action, :as => :resource, :dependent => :destroy, :autosave => true

serialize :options
serialize :options, Hash
serialize :visibility_expression
serialize :enablement_expression
serialize :visibility
Expand Down

0 comments on commit fcad896

Please sign in to comment.