lib/restfulx.rb in restfulx-1.3.0 vs lib/restfulx.rb in restfulx-1.3.1

- old
+ new

@@ -1,26 +1,15 @@ $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) require 'yaml' require 'restfulx/configuration' +require 'restfulx/amf' # Settings module RestfulX # Valid types supported internally on top of standard Rails types module Types APPLICATION_FXML = 'application/xml'.freeze APPLICATION_AMF = 'application/x-amf'.freeze - end - - # get the currently defined AMF serializer - def self.amf_serializer - @amf_serializer - end - - # set the amf serializer to use - # valid options are :native and :pure, using :pure is recommended as it is as fast - # as native but currently better tested/supported - def self.amf_serializer=(value) - @amf_serializer = value end VERSION_SOURCE = YAML.load(File.read(File.join(File.dirname(__FILE__), '..', 'VERSION.yml'))) VERSION = "#{VERSION_SOURCE[:major]}.#{VERSION_SOURCE[:minor]}.#{VERSION_SOURCE[:patch]}" end \ No newline at end of file