Sha256: 746a88895b646ea280920d9e7aee6850a5570c13c15325ecd798a90573b58ca3
Contents?: true
Size: 1.39 KB
Versions: 2
Compression:
Stored size: 1.39 KB
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
administrate-0.19.0 | lib/administrate.rb |
administrate-0.18.0 | lib/administrate.rb |