require "rails/engine" require "uploadcare/rails/settings" module Uploadcare module Rails class Engine < ::Rails::Engine initializer 'uploadcare-rails.load' do # load actual rails extentions # active record extention for stand-alone file models and models has files ActiveSupport.on_load :active_record do require 'uploadcare/rails/active_record_has_file' require 'uploadcare/rails/active_record_has_group' end # # JS options, widets from cdn etc ActiveSupport.on_load :action_view do require 'uploadcare/rails/action_view_include_tags' require 'uploadcare/rails/action_view_uploader_tags' # # form helpers # require 'uploadcare/rails/form_helpers' # require 'uploadcare/rails/simple_form' if defined?(SimpleForm) end end end end end