class Object
Public Instance Methods
common_lets()
click to toggle source
# File lib/generators/templates/support/common_lets.rb, line 1 def common_lets end
get_nesting(meta, other_ids = {})
click to toggle source
# File lib/generators/templates/support/get_nesting.rb, line 1 def get_nesting(meta, other_ids = {}) meta.metadata.select { |k, _| k.to_s.include?('_id') } .each_with_object({}) { |(k, v), hsh| hsh[k] = send(v).id }.reverse_merge(other_ids) end