Top Level Namespace
Defined Under Namespace
Modules: Async, FormObject, Kitestrings, NestedLoadAndAuthorize, PageAndSortHelper
Classes: ArrayValidator, CreateMessages, MessageMailer, MessagesController, SizeValidator, UniquenessWithoutDeletedValidator
Instance Method Summary
collapse
Instance Method Details
#common_lets ⇒ Object
1
2
|
# File 'lib/generators/templates/support/common_lets.rb', line 1
def common_lets
end
|
#get_nesting(meta, other_ids = {}) ⇒ Object
1
2
3
4
|
# 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
|