lib/cantango/configuration/ability.rb in cantango-config-0.1.7 vs lib/cantango/configuration/ability.rb in cantango-config-0.1.8
- old
+ new
@@ -5,11 +5,24 @@
include ClassExt
include CanTango::Configuration::Factory
include CanTango::Configuration::ExecutionModes
+ def default_executor_class
+ @default_executor_class ||= CanTango::Ability::Executor::Modal
+ end
+
+ def default_executor_class= clazz
+ raise ArgumentError, "default must be a Class" if !is_class? clazz
+ @default_executor_class = clazz
+ end
+
def default_class
- @default_class ||= CanTango::Ability::Executor::Modal
+ @default_class ||= CanTango::Ability::Base
+ end
+
+ def factor_class_method
+ :default_executor_class
end
end
end
end