Sha256: 3c423b4424d62018709cddcbdda9a32a3a19402305247b5152157e7f948439f7
Contents?: true
Size: 474 Bytes
Versions: 6
Compression:
Stored size: 474 Bytes
Contents
module NestedScaffold module Base protected def nested_parent_name @class_path.join('/') end def nested_parent_id "#{nested_parent_name}_id" end def nested_parent_class_name nested_parent_name.classify end def plural_nested_parent_name nested_parent_name.pluralize end def class_path [] end def regular_class_path [] end def controller_class_path [] end end end
Version data entries
6 entries across 6 versions & 1 rubygems