Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
administrate / lib / administrate.rb
Size: Mime:
require "administrate/engine"

module Administrate
  def self.warn_of_missing_resource_class
    ActiveSupport::Deprecation.warn(
      "Calling Field::Base.permitted_attribute without the option " +
      ":resource_class is deprecated. If you are seeing this " +
      "message, you are probably using a custom field type that" +
      "does this. Please make sure to update it to a version that " +
      "does not use a deprecated API",
    )
  end

  def self.warn_of_deprecated_option(name)
    ActiveSupport::Deprecation.warn(
      "The option :#{name} is deprecated. " +
      "Administrate should detect it automatically. " +
      "Please file an issue at " +
      "https://github.com/thoughtbot/administrate/issues " +
      "if you think otherwise.",
    )
  end

  def self.warn_of_deprecated_method(klass, method)
    ActiveSupport::Deprecation.warn(
      "The method #{klass}##{method} is deprecated. " +
      "If you are seeing this message you are probably " +
      "using a dashboard that depends explicitly on it. " +
      "Please make sure you update it to a version that " +
      "does not use a deprecated API",
    )
  end

  def self.warn_of_deprecated_authorization_method(method)
    ActiveSupport::Deprecation.warn(
      "The method `#{method}` is deprecated. " +
      "Please use `accessible_action?` instead, " +
      "or see the documentation for other options.",
    )
  end
end