lib/engine2/action.rb in engine2-1.0.2 vs lib/engine2/action.rb in engine2-1.0.3
- old
+ new
@@ -69,14 +69,9 @@
define_action name, meta_class, assets do
self.*.define_singleton_method(:invoke, &blk)
end
end
- def undefine_action name
- ::Kernel.raise E2Error.new("No action #{name} defined") unless @actions[name]
- @actions.delete(name)
- end
-
def define_action_bundle name, *actions
define_singleton_method!(name) do |&blk|
if blk
actions.each{|a|__send__(a, &blk)} # if @actions[action] ?
else
\ No newline at end of file