Sha256: 448db6ef4355f76a432107ccc03ea3280949fa23ba3b11c8f72f604ef8d449a6
Contents?: true
Size: 753 Bytes
Versions: 15
Compression:
Stored size: 753 Bytes
Contents
require 'roar/rails/controller_methods' require 'roar/representer' require 'roar/representer/xml' # TODO: make dynamically. require 'roar/representer/json' # TODO: make dynamically. require 'roar/rails/representer_methods' require 'roar/representer/feature/model_representing' module Roar module Rails end end # FIXME: don't like monkey-patching: # TODO: assure we don't overwrite anything here, as people might want to do things without AR/DM. Roar::Representer::XML.class_eval do # FIXME: why in XML, only? #definition_class is defined in Representable. include Roar::Representer::Feature::ModelRepresenting include Roar::Representer::Feature::ActiveRecordMethods # to_nested_attributes include Roar::Rails::RepresenterMethods end
Version data entries
15 entries across 15 versions & 1 rubygems