User.find(:first,
:conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil?],
[:text_file_repository_writable, File.writable?(Attachment.storage_path)],
- [:text_plugin_assets_writable, File.writable?(Engines.public_directory)],
+ [:text_plugin_assets_writable, File.writable?(Redmine::Plugin.public_directory)],
[:text_rmagick_available, Object.const_defined?(:Magick)]
]
end
#
# When rendered, the plugin settings value is available as the local variable +settings+
class Plugin
+ cattr_accessor :public_directory
+ self.public_directory = File.join(Rails.root, 'public', 'plugin_assets')
+
@registered_plugins = {}
class << self
attr_reader :registered_plugins