module Further::Core::LocalInstanceMethods
Public Instance Methods
further_info(attributes = {})
click to toggle source
# File lib/further/core.rb, line 23 def further_info(attributes = {}) further = self.further_information info = {} if attributes.present? # Set if further attributes.each_pair do |key, value| further.info[key] = value end further.save else further = self.build_further_information info: attributes further.save end info = further.info else # Get info = further.info if further end info end