instance method
rich_text_association_names
Ruby on Rails edge
Since v7.0.10Signature
rich_text_association_names()
Returns the names of all RichText associations.
Message.rich_text_association_names
# => [:rich_text_content]
Source
# File actiontext/lib/action_text/attribute.rb, line 123
def rich_text_association_names
reflect_on_all_associations(:has_one).collect(&:name).select { |n| n.start_with?("rich_text_") }
end
Defined in actiontext/lib/action_text/attribute.rb line 123
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attribute