Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class MyActor < Hyrax::Actors::AbstractActor
def create(env)
titlilze(env, attribute: :title) && next_actor.create(env)
end
private
def titlize(env, attribute:)
env.attributes[:attribute] = env.attributes[:attribute].map(&:titlize)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment