Flowdock
method

new

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: Content
new(content = nil, options = {}) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actiontext/lib/action_text/content.rb, line 19
    def initialize(content = nil, options = {})
      options.with_defaults! canonicalize: true

      if options[:canonicalize]
        @fragment = self.class.fragment_by_canonicalizing_content(content)
      else
        @fragment = ActionText::Fragment.wrap(content)
      end
    end
Register or log in to add new notes.