app/cyclid/plugins.rb in cyclid-0.2.1 vs app/cyclid/plugins.rb in cyclid-0.2.2

- old
+ new

@@ -38,10 +38,15 @@ def register_plugin(name) @name = name Cyclid.plugins.register(self) end + # Does this plugin support configuration data? + def config? + false + end + # Get the configuration for the given org def get_config(org) # If the organization was passed by name, convert it into an Organization object org = Organization.find_by(name: org) if org.is_a? String raise 'organization does not exist' if org.nil? @@ -121,5 +126,10 @@ end end end require_rel 'plugins/*.rb' + +# Load all plugins from Gems +Gem.find_files('cyclid/plugins/**/*.rb').each do |path| + require path +end