# Integrating QR Code Generation with rqrcode Gem in Package Installation

**URL:** https://community.zammad.org/t/integrating-qr-code-generation-with-rqrcode-gem-in-package-installation/15017
**Category:** Development
**Created:** [July 23, 2024, 12:39pm UTC](https://community.zammad.org/t/integrating-qr-code-generation-with-rqrcode-gem-in-package-installation/15017 "2024-07-23T12:39:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Caufland](https://community.zammad.org/letter_avatar_proxy/v4/letter/c/b9bd4f/32.png) [@Caufland](https://community.zammad.org/u/Caufland)
#### Post date: [July 23, 2024, 12:39pm UTC](https://community.zammad.org/t/integrating-qr-code-generation-with-rqrcode-gem-in-package-installation/15017/1 "2024-07-23T12:39:16Z")

</div>

Hi,

I’m creating a package in which I need to generate qrcode I wanted to use the rqrcode gem for this, but I’m wondering how I can install it in the package so that automatically when I install it (package) this gem is added to gemfile.

---

<div class="post-metadata">

### Author: ![rolfschmidt](https://community.zammad.org/user_avatar/community.zammad.org/rolfschmidt/32/3368_2.png) [@rolfschmidt](https://community.zammad.org/u/rolfschmidt)
#### Post date: [July 25, 2024, 7:09am UTC](https://community.zammad.org/t/integrating-qr-code-generation-with-rqrcode-gem-in-package-installation/15017/2 "2024-07-25T07:09:52Z")

</div>

You can add a file like this into your package:

`Gemfile.local.your_package`

```auto
gem 'rqrcode'

```

If the package (zpm) contains files like `Gemfile*` then it will show up additional commands in the UI of Admin → Package which will be required after package installation.

Related core code:

[zammad/Gemfile at 31c03b93eed085ce184deb73a7288c904e5d2ffb · zammad/zammad · GitHub](https://github.com/zammad/zammad/blob/31c03b93eed085ce184deb73a7288c904e5d2ffb/Gemfile#L267-L269)

[zammad/app/models/package.rb at 31c03b93eed085ce184deb73a7288c904e5d2ffb · zammad/zammad · GitHub](https://github.com/zammad/zammad/blob/31c03b93eed085ce184deb73a7288c904e5d2ffb/app/models/package.rb#L328-L330)

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [August 1, 2024, 7:10am UTC](https://community.zammad.org/t/integrating-qr-code-generation-with-rqrcode-gem-in-package-installation/15017/3 "2024-08-01T07:10:26Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
