Instead of writing
class FooCreator < Creator
def initialize(raw_params, user)
super(raw_params)
@user = user
end
def after_create
@user.bar()
end
end
FooCreator.new(params, current_user)
I'd want to be able to do this as a hash and just reference by a key
class FooCreator < Creator
def after_create
user.bar()
end
end
FooCreator.new(params, :user => current_user)