Created
August 15, 2009 22:27
-
-
Save edavis10/168469 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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