module JSONAPI

def self.configuration

def self.configuration
  @configuration ||= Configuration.new
end

def self.configure

def self.configure
  yield configuration if block_given?
end

def self.rebuild_base_controllers!

base_controller_class configuration. Safe to call repeatedly.
Rebuild BaseController, RelationshipsController, and ResourcesController to reflect the current
def self.rebuild_base_controllers!
  remove_const(:BaseController) if const_defined?(:BaseController)
  load "json_api/controllers/base_controller.rb"
  remove_const(:RelationshipsController) if const_defined?(:RelationshipsController)
  load "json_api/controllers/relationships_controller.rb"
  remove_const(:ResourcesController) if const_defined?(:ResourcesController)
  load "json_api/controllers/resources_controller.rb"
end