Skip to content

Commit

Permalink
Fix private class methods
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Apr 18, 2018
1 parent de032a3 commit 68d996c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/manager_refresh/inventory_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,14 @@ def self.define_data_writer(data_key)
public_send(:[]=, data_key.to_s.delete("=").to_sym, value)
end
end
private_class_method :define_data_writer

def self.define_data_reader(data_key)
define_method(data_key) do
public_send(:[], data_key)
end
end
private_class_method :define_data_reader

# Return true passed key representing a getter is an association
#
Expand Down

0 comments on commit 68d996c

Please sign in to comment.