Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created August 15, 2009 22:27
Show Gist options
  • Save edavis10/168469 to your computer and use it in GitHub Desktop.
Save edavis10/168469 to your computer and use it in GitHub Desktop.
FatFreeCRM::Plugin.register(:fat_free_issues, initializer) do
name "Fat Free Issues"
author "PCCL"
version "1.0"
description "Basic support for issues"
dependencies :simple_column_search, :uses_mysql_uuid, :uses_user_permissions
end
# Plugin dependencies
# From: 14:52 < michaeldv> no problem, feel free to reuse
# Preload other plugins that are required by the plugin being handled.
def dependencies(*plugins)
puts plugins.inspect
plugins.each do |name|
plugin = Rails::Plugin.new("vendor/plugins/#{name}")
plugin.load(@initializer)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment