This repository has been archived on 2025-08-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
plistifier/init.rb
2010-07-06 19:11:06 +02:00

12 lines
No EOL
373 B
Ruby

gem "cfpropertylist", ">=2.0.9"
require 'plistifier/plist_encoding'
require 'rails_extensions'
Mime::Type.register "application/plist", :plist
ActionController::Base.param_parsers[Mime::Type.lookup("application/plist")] = lambda do |body|
str = StringIO.new(body)
plist = CFPropertyList::List.new({:data => str.string})
CFPropertyList.native_types(plist.value)
end