Sha256: 96ec97d931ad7d1f4b44135a466a2833ec804e6eac8a479ed3cda7809cc5004a
Contents?: true
Size: 1.45 KB
Versions: 3
Compression:
Stored size: 1.45 KB
Contents
require "administrate/engine" require "administrate/version" module Administrate def self.warn_of_missing_resource_class deprecator.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) deprecator.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) deprecator.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) deprecator.warn( "The method `#{method}` is deprecated. " \ "Please use `accessible_action?` instead, " \ "or see the documentation for other options." ) end def self.deprecator @deprecator ||= ActiveSupport::Deprecation.new(VERSION, "Administrate") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
administrate-1.0.0.beta3 | lib/administrate.rb |
administrate-1.0.0.beta2 | lib/administrate.rb |
administrate-1.0.0.beta1 | lib/administrate.rb |