module CoinDealApi
class Utils
def get_object(platform)
Rails.logger.info "not found"
end
end
end
config/application.rb
require_relative 'boot'
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module DomesticTrade
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
config.autoload_paths += [
Rails.root.join('lib')
]
config.eager_load_paths += [
Rails.root.join('lib/coin_deal_api')
]
end
end
报的错误:` get_object': uninitialized constant #Class:CoinDealApi::Utils::Rails (NameError),
这里应该怎么弄??