method
to_formatted_s
v1.2.6 -
Show latest stable
- Class:
ActiveSupport::CoreExtensions::Array::Conversions
to_formatted_s(format = :default)public
No documentation available.
# File activesupport/lib/active_support/core_ext/array/conversions.rb, line 34
def to_formatted_s(format = :default)
case format
when :db
if respond_to?(:empty?) && self.empty?
"null"
else
collect { |element| element.id }.join(",")
end
else
to_default_s
end
end