我正试图将一个单元纳入我的转播工人,但我却不断发现这一错误——
failed: #<NoMethodError: undefined method `build_page for RefreshEventCache:Class>
工人―― /申请/工人/再就业者/发明者_cache.rb
require File.dirname(__FILE__) + /../../lib/locomotive/render.rb
class RefreshEventCache
include Resque::Plugins::UniqueJob
include Locomotive::Render
@queue = :events_queue
def self.perform(url)
build_page(url)
end
end
模块 - /lib/locomot/render.rb
module Locomotive
module Render
extend ActiveSupport::Concern
module InstanceMethods
def build_page(full_path)
Rails.logger.debug "BUILDING PAGE"
end
end
end
end
任何想法?