Skip to content

Commit

Permalink
keep the hash method, because it is required in ruby to use a class i…
Browse files Browse the repository at this point in the history
…nstance as a hash-key
  • Loading branch information
renegr committed Jul 31, 2018
1 parent 2a1a642 commit f7d5729
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/flexirest/base_without_validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ class BaseWithoutValidation
attr_accessor :_etag
attr_accessor :_headers

instance_methods.each do |m|
next unless %w{display presence load require untrust trust freeze method enable_warnings with_warnings suppress capture silence quietly debugger breakpoint}.map(&:to_sym).include? m
undef_method m
end

def initialize(attrs={})
@attributes = {}
@dirty_attributes = Hash.new
Expand Down

0 comments on commit f7d5729

Please sign in to comment.