Skip to content

Change the way other attributes are defined #2

@yonbergman

Description

@yonbergman

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions