Sha256: 5d502d174bed838cf5d9b8a314a38afb49ff8afdf894e8f8404dd492c1a79ade

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

module CmsDeprecatedMultisite
  extend ActiveSupport::Concern

  included do
    scope :site, ->(_sid) {
      ActiveSupport::Deprecation.warn 'Model.site scope is deprecated and will be removed in the future'
      all()
    }
  end

  def site_id
    ActiveSupport::Deprecation.warn '#site_id is deprecated and will be removed in the future'
    return 0
  end

  def site_id=(_id)
    ActiveSupport::Deprecation.warn '#site_id is deprecated and will be removed in the future'
    return nil
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tb_cms-1.3.6 app/models/concerns/cms_deprecated_multisite.rb
tb_cms-1.3.5 app/models/concerns/cms_deprecated_multisite.rb
tb_cms-1.3.3 app/models/concerns/cms_deprecated_multisite.rb
tb_cms-1.3.2 app/models/concerns/cms_deprecated_multisite.rb
tb_cms-1.3.1 app/models/concerns/cms_deprecated_multisite.rb
tb_cms-1.3.0 app/models/concerns/cms_deprecated_multisite.rb
tb_cms-1.3.beta1 app/models/concerns/cms_deprecated_multisite.rb