Flowdock
method

new

Importance_0
v3.0.5 - Show latest stable - 0 notes - Class: ActiveModel::Serializers::Xml::Serializer
new(serializable, options = nil) public

No documentation

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

Hide source
# File activemodel/lib/active_model/serializers/xml.rb, line 48
        def initialize(serializable, options = nil)
          @serializable = serializable
          @options = options ? options.dup : {}

          @options[:only] = Array.wrap(@options[:only]).map { |n| n.to_s }
          @options[:except] = Array.wrap(@options[:except]).map { |n| n.to_s }
        end
Register or log in to add new notes.