Module: ActiveGraph::Support

Defined in:
lib/active_graph/active_record_extension.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.valualize(value_or_proc) ⇒ Object



6
7
8
# File 'lib/active_graph/active_record_extension.rb', line 6

def self.valualize(value_or_proc)
  value_or_proc.is_a?(Proc) ? value_or_proc.call : value_or_proc
end