require 'hydra-editor' module Hydra module Mediated extend ActiveSupport::Autoload autoload :Ability autoload :Item end end module HydraMediated extend ActiveSupport::Autoload class Engine < ::Rails::Engine engine_name 'mediated' # These lines are probably unnecessary in rails 4 config.autoload_paths += %W( #{config.root}/app/controllers/concerns #{config.root}/app/models/concerns ) end end