Class: Renalware::NestedAttribute

Inherits:
Document::Embedded show all
Defined in:
app/documents/renalware/nested_attribute.rb

Constant Summary

Constants inherited from Document::Embedded

Document::Embedded::STRIPPABLE_TYPES

Instance Method Summary collapse

Methods inherited from Document::Embedded

attribute, attributes_list, #method_missing, old_attribute, old_attributes, #strip_leading_trailing_whitespace_from_numbers

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Document::Embedded

Instance Method Details

#nested_attribute?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/documents/renalware/nested_attribute.rb', line 7

def nested_attribute?
  true
end

#to_partial_pathObject



11
12
13
14
# File 'app/documents/renalware/nested_attribute.rb', line 11

def to_partial_path
  class_name = self.class.name.demodulize.underscore
  "renalware/shared/documents/#{class_name}"
end