4 5 6 7
# File 'lib/passkit/factory.rb', line 4 def create_pass(pass_class, generator = nil) pass = Passkit::Pass.create!(klass: pass_class, generator: generator) Passkit::Generator.new(pass).generate_and_sign end