lib/jflow/activity/definition.rb in jflow-0.4.0 vs lib/jflow/activity/definition.rb in jflow-0.4.1
- old
+ new
@@ -4,11 +4,11 @@
DEFAULT_OPTIONS = {
:exceptions_to_exclude => []
}
- REGISTRATION_OPTIONS = [:version, :domain, :name, :default_task_list]
+ JFLOW_OPTIONS = [:exceptions_to_exclude]
OPTIONS_VALIDATOR = {
:version => "string",
:domain => "string",
:name => "string",
@@ -81,11 +81,11 @@
end
private
def registration_options
- REGISTRATION_OPTIONS.each_with_object({}) do |key, hash|
- hash[key] = @options[key]
+ @options.reject do |key,value|
+ JFLOW_OPTIONS.include?(key)
end
end
def validate_activity!
validator = HashValidator.validate(@options, OPTIONS_VALIDATOR)