module Administrate

Constants

VERSION

Public Class Methods

warn_of_deprecated_authorization_method(method) click to toggle source
# File lib/administrate.rb, line 34
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
warn_of_deprecated_method(klass, method) click to toggle source
# File lib/administrate.rb, line 24
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
warn_of_deprecated_option(name) click to toggle source
# File lib/administrate.rb, line 14
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
warn_of_missing_resource_class() click to toggle source
# File lib/administrate.rb, line 4
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