Sha256: 9469c841e4dc03983f43282cf16b15b66c632760d1c915350ac04a84c1a420c9
Contents?: true
Size: 1.18 KB
Versions: 5
Compression:
Stored size: 1.18 KB
Contents
# encoding: utf-8 module CarrierWave module Qiniu module Configuration extend ActiveSupport::Concern included do add_config :qiniu_bucket_domain add_config :qiniu_bucket add_config :qiniu_bucket_private add_config :qiniu_access_key add_config :qiniu_secret_key add_config :qiniu_block_size add_config :qiniu_protocol add_config :qiniu_async_ops add_config :qiniu_persistent_notify_url add_config :qiniu_callback_url add_config :qiniu_callback_body add_config :qiniu_can_overwrite add_config :qiniu_expires_in add_config :qiniu_up_host add_config :qiniu_private_url_expires_in alias_config :qiniu_protocal, :qiniu_protocol end module ClassMethods def alias_config(new_name, old_name) class_eval <<-RUBY, __FILE__, __LINE__ + 1 def self.#{new_name}(value=nil) self.#{old_name}(value) end def self.#{new_name}=(value) self.#{old_name}=(value) end def #{new_name} #{old_name} end RUBY end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems