Sha256: 90df7af653117db9a7c4c5e9d406c81dc96ce75a0273585f728c641773a44b03
Contents?: true
Size: 762 Bytes
Versions: 23
Compression:
Stored size: 762 Bytes
Contents
module RemoteResource module UrlNaming extend ActiveSupport::Concern included do class_attribute :site, :version, :path_prefix, :path_postfix, :collection_prefix, :collection, :collection_name, instance_accessor: false self.collection = false end module ClassMethods def app_host(*_) warn '[DEPRECATION] `.app_host` is deprecated. Please use a different method to determine the site.' end def base_url(connection_options = {}) RemoteResource::UrlNamingDetermination.new(self, self.connection_options.to_hash.merge(connection_options)).base_url(connection_options[:id], check_collection_options: false) end def use_relative_model_naming? true end end end end
Version data entries
23 entries across 23 versions & 1 rubygems