Sha256: b8e573b5d1dbe52995212cd911e58f91bd7949fd5d8573104dd729147c74de91
Contents?: true
Size: 784 Bytes
Versions: 6
Compression:
Stored size: 784 Bytes
Contents
require 'rails' module Tanker class Railtie < Rails::Railtie config.index_tank_url = nil config.tanker_pagination_backend = nil initializer "tanker.boot" do Tanker.configuration = {}.tap do |_new_conf| _new_conf[:url] = config.index_tank_url if config.index_tank_url _new_conf[:pagination_backend] = config.tanker_pagination_backend if config.tanker_pagination_backend end end config.after_initialize do Tanker.configuration = {}.tap do |_new_conf| _new_conf[:url] = config.index_tank_url if config.index_tank_url _new_conf[:pagination_backend] = config.tanker_pagination_backend if config.tanker_pagination_backend end end rake_tasks do load "tanker/tasks/tanker.rake" end end end
Version data entries
6 entries across 6 versions & 1 rubygems