# proposals

**URL:** https://discourse.hanakai.org/c/proposals/6.md?page=1

[Latest](https://discourse.hanakai.org/latest.md) · [Categories](https://discourse.hanakai.org/categories.md)

**Page:** 2

---

## [Default to UUID orimary key via app settings](https://discourse.hanakai.org/t/default-to-uuid-orimary-key-via-app-settings/458)

<div class="topic-metadata">

**Author:** [@jc00ke](https://discourse.hanakai.org/u/jc00ke)\
**Replies:** 0\
**Last updated:** [August 6, 2018, 11:53pm UTC](https://discourse.hanakai.org/t/default-to-uuid-orimary-key-via-app-settings/458 "2018-08-06T23:53:41Z")

</div>

I asked about this years ago, and I see it’s possible to use a UUID as the primary key, but I’d like to propose we add an app setting to .hanamirc that will default primary keys in generated migrations to UUID. If it’s n…

---

## [Hanami::Mimoto - Easy authentication for Hanami](https://discourse.hanakai.org/t/hanami-mimoto-easy-authentication-for-hanami/400)

<div class="topic-metadata">

**Author:** [@dbjsy](https://discourse.hanakai.org/u/dbjsy)\
**Replies:** 4\
**Last updated:** [September 13, 2017, 8:36am UTC](https://discourse.hanakai.org/t/hanami-mimoto-easy-authentication-for-hanami/400 "2017-09-13T08:36:26Z")

</div>

Hey everyone, I’ve been watching Hanami closely for some time now, and the latest release has conquered my soul - I would like to congratulate you guys for your great work! As we know Hanami is still young, and so is t…

---

## [Add obstacle for monkey-patching](https://discourse.hanakai.org/t/add-obstacle-for-monkey-patching/313)

<div class="topic-metadata">

**Author:** [@amerov](https://discourse.hanakai.org/u/amerov)\
**Replies:** 12\
**Last updated:** [July 31, 2017, 9:30am UTC](https://discourse.hanakai.org/t/add-obstacle-for-monkey-patching/313 "2017-07-31T09:30:37Z")

</div>

Examples: In Rails world projects like Kaminari implicitly includes modules to all models. https://github.com/kaminari/kaminari/blob/master/kaminari-activerecord/lib/kaminari/activerecord.rb#L7 Is possible to freeze co…

---

## [Transform Utils::String and Utils::Hash to modules](https://discourse.hanakai.org/t/transform-utils-string-and-utils-hash-to-modules/336)

<div class="topic-metadata">

**Author:** [@jodosha](https://discourse.hanakai.org/u/jodosha)\
**Replies:** 0\
**Last updated:** [April 25, 2017, 11:14am UTC](https://discourse.hanakai.org/t/transform-utils-string-and-utils-hash-to-modules/336 "2017-04-25T11:14:26Z")

</div>

Proposal Remove Utils::Hash and Utils::String as types that can be instantiated and make the current operations available as class methods. Hanami::Utils::Hash.symbolize("a" =\> 1) # =\> {:a=\>1} Background The need for U…

---

## [Hanami Release Management](https://discourse.hanakai.org/t/hanami-release-management/310)

<div class="topic-metadata">

**Author:** [@jodosha](https://discourse.hanakai.org/u/jodosha)\
**Replies:** 4\
**Last updated:** [March 22, 2017, 12:30pm UTC](https://discourse.hanakai.org/t/hanami-release-management/310 "2017-03-22T12:30:07Z")

</div>

Our release management follows one rule: it's ready when it's ready, and when it's ready we ship it. Simple enough have me as the main maintainer for Hanami until now. With the new people joining the team, and perhaps …

---

## [Benchmarks for lotus](https://discourse.hanakai.org/t/benchmarks-for-lotus/201)

<div class="topic-metadata">

**Author:** [@davydovanton](https://discourse.hanakai.org/u/davydovanton)\
**Replies:** 4\
**Last updated:** [January 10, 2016, 4:35pm UTC](https://discourse.hanakai.org/t/benchmarks-for-lotus/201 "2016-01-10T16:35:34Z")

</div>

I lnow that all love benchmarks. \[smile\] Therefore I propose to create benchmarks to all parts of lotus. Also, I think we can add a lotus repository to rubybench project. After that it will be possible to monitor perfo…

---

## [Make interactor closer to action by adding params validation?](https://discourse.hanakai.org/t/make-interactor-closer-to-action-by-adding-params-validation/152)

<div class="topic-metadata">

**Author:** [@davidpelaez](https://discourse.hanakai.org/u/davidpelaez)\
**Replies:** 0\
**Last updated:** [September 11, 2015, 11:51pm UTC](https://discourse.hanakai.org/t/make-interactor-closer-to-action-by-adding-params-validation/152 "2015-09-11T23:51:29Z")

</div>

Hello, I have been fascinated with lotus for the last two weeks. Thanks for the amazing job. I came to it finding about more robust application architectures after a Rails app was growing out of control. I found about …

---

## [Coercion of nil](https://discourse.hanakai.org/t/coercion-of-nil/145)

<div class="topic-metadata">

**Author:** [@leandrocp](https://discourse.hanakai.org/u/leandrocp)\
**Replies:** 3\
**Last updated:** [September 4, 2015, 6:00pm UTC](https://discourse.hanakai.org/t/coercion-of-nil/145 "2015-09-04T18:00:08Z")

</div>

Summary: null param should be returned as nil Let me explain. Suppose I have the following params: param :code, Integer param :name, String And my app is an API that receives the following JSON: { "code": null, …

---

## [Refactoring \`text\_area\`](https://discourse.hanakai.org/t/refactoring-text-area/139)

<div class="topic-metadata">

**Author:** [@josemotanet](https://discourse.hanakai.org/u/josemotanet)\
**Replies:** 4\
**Last updated:** [August 30, 2015, 12:02pm UTC](https://discourse.hanakai.org/t/refactoring-text-area/139 "2015-08-30T12:02:10Z")

</div>

Refers to https://github.com/lotus/helpers/pull/33 . This starts the debate on cleaner implementations of the text\_area method.

---

## [Compliance between Lotus::Logger and Rack::Common::Logger](https://discourse.hanakai.org/t/compliance-between-lotus-logger-and-rack-logger/32)

<div class="topic-metadata">

**Author:** [@huydx](https://discourse.hanakai.org/u/huydx)\
**Replies:** 1\
**Last updated:** [August 21, 2015, 12:49am UTC](https://discourse.hanakai.org/t/compliance-between-lotus-logger-and-rack-logger/32 "2015-08-21T00:49:05Z")

</div>

I’ve recently create Lotus::Logger to log from anywhere inside Lotus app, along with the application name Currently, i’m working on replacing current implementation of Rack::Common::Logger with recently created one. Th…

---

## [IDEA! Have a Lotus example app repo](https://discourse.hanakai.org/t/idea-have-a-lotus-example-app-repo/130)

<div class="topic-metadata">

**Author:** [@skinofstars](https://discourse.hanakai.org/u/skinofstars)\
**Replies:** 5\
**Last updated:** [August 20, 2015, 11:21am UTC](https://discourse.hanakai.org/t/idea-have-a-lotus-example-app-repo/130 "2015-08-20T11:21:46Z")

</div>

Sometimes people want docs, sometimes they just want to see how to write best practice code. How about an example app in Github that matches the documentation. i.e. The Bookshelf

---

## [Stop Lotus::Lotusrc to write .lotusrb file automatically](https://discourse.hanakai.org/t/stop-lotus-lotusrc-to-write-lotusrb-file-automatically/125)

<div class="topic-metadata">

**Author:** [@pascalbetz](https://discourse.hanakai.org/u/pascalbetz)\
**Replies:** 3\
**Last updated:** [August 12, 2015, 10:08am UTC](https://discourse.hanakai.org/t/stop-lotus-lotusrc-to-write-lotusrb-file-automatically/125 "2015-08-12T10:08:20Z")

</div>

Since the lotusrc file gets written with default values (if it does not exist) when Lotus::Lotusrc is instantiated, every class that uses L::Lotusrc might write a file as a sideeffect. I don't think that this is nice b…

---

## [Auto-detect RESTful routes for Routes generator](https://discourse.hanakai.org/t/auto-detect-restful-routes-for-routes-generator/124)

<div class="topic-metadata">

**Author:** [@trung\_le](https://discourse.hanakai.org/u/trung_le)\
**Replies:** 0\
**Last updated:** [August 11, 2015, 9:45am UTC](https://discourse.hanakai.org/t/auto-detect-restful-routes-for-routes-generator/124 "2015-08-11T09:45:40Z")

</div>

Unlike Rails, Lotus does not consider Rails resource generator is a good pattern for Rails is so tied to CRUD. Thus Lotus introduces the single action routes generator which always uses GET method for that, users then re…

---

## [Allow users to specify method type for new generated routes](https://discourse.hanakai.org/t/allow-users-to-specify-method-type-for-new-generated-routes/116)

<div class="topic-metadata">

**Author:** [@trung\_le](https://discourse.hanakai.org/u/trung_le)\
**Replies:** 2\
**Last updated:** [August 6, 2015, 8:17am UTC](https://discourse.hanakai.org/t/allow-users-to-specify-method-type-for-new-generated-routes/116 "2015-08-06T08:17:50Z")

</div>

Lotus action generator atm generates routes to controller action with type GET. This might cause inconveniences for users who want different type for the route. I’d like to propose a new way to let users generate action…

---

## [Allow Lotus::Validations to coerce members of an Array](https://discourse.hanakai.org/t/allow-lotus-validations-to-coerce-members-of-an-array/120)

<div class="topic-metadata">

**Author:** [@krisleech](https://discourse.hanakai.org/u/krisleech)\
**Replies:** 6\
**Last updated:** [August 3, 2015, 8:36am UTC](https://discourse.hanakai.org/t/allow-lotus-validations-to-coerce-members-of-an-array/120 "2015-08-03T08:36:43Z")

</div>

I would like to be able to do attribute :people, type: Array\[Person\] and have each member of the array coerced to a Person. Here is a fuller example: class Person attr\_reader :name def initalize…

---

## [Change the behavior of Repository create/persist](https://discourse.hanakai.org/t/change-the-behavior-of-repository-create-persist/117)

<div class="topic-metadata">

**Author:** [@pascalbetz](https://discourse.hanakai.org/u/pascalbetz)\
**Replies:** 0\
**Last updated:** [July 27, 2015, 9:37am UTC](https://discourse.hanakai.org/t/change-the-behavior-of-repository-create-persist/117 "2015-07-27T09:37:27Z")

</div>

I did not realize that there is also a discuss site for lots, sorry. I created this as an issue in https://github.com/lotus/model/issues/215 first. As already mentioned in #206 (https://github.com/lotus/model/issues/20…

---

## [Group lotus commands in group](https://discourse.hanakai.org/t/group-lotus-commands-in-group/101)

<div class="topic-metadata">

**Author:** [@trung\_le](https://discourse.hanakai.org/u/trung_le)\
**Replies:** 1\
**Last updated:** [July 3, 2015, 1:35pm UTC](https://discourse.hanakai.org/t/group-lotus-commands-in-group/101 "2015-07-03T13:35:49Z")

</div>

What this is about: Lotus commands public interface are not consistent. We have commands that belongs to verb action like: lotus new and lotus generate action lotus generate app and at the same time we have com…

---

## [ActiveAdmin like data visualisation (Lotus::Admin) for lotus?](https://discourse.hanakai.org/t/activeadmin-like-data-visualisation-lotus-admin-for-lotus/93)

<div class="topic-metadata">

**Author:** [@theocodes](https://discourse.hanakai.org/u/theocodes)\
**Replies:** 3\
**Last updated:** [June 30, 2015, 8:11am UTC](https://discourse.hanakai.org/t/activeadmin-like-data-visualisation-lotus-admin-for-lotus/93 "2015-06-30T08:11:26Z")

</div>

Hello my good people! ActiveAdmin like data visualisation tool for Lotus? I’m having to implement something of sorts for my current client project and I thought I’d raise the question here. I’ll implement it anyways, …

---

## [link\_to view helper](https://discourse.hanakai.org/t/link-to-view-helper/58)

<div class="topic-metadata">

**Author:** [@tomkadwill](https://discourse.hanakai.org/u/tomkadwill)\
**Replies:** 4\
**Last updated:** [June 29, 2015, 8:37am UTC](https://discourse.hanakai.org/t/link-to-view-helper/58 "2015-06-29T08:37:08Z")

</div>

A common pattern in views is to link to a route, eg: link\_to :blogs\_path Should lotus have a helper method for this? I haven't put much though into the specifics yet but first want to check whether people like this fe…

---

## [Support I18n translation](https://discourse.hanakai.org/t/support-i18n-translation/18)

<div class="topic-metadata">

**Author:** [@zavan](https://discourse.hanakai.org/u/zavan)\
**Replies:** 7\
**Last updated:** [June 28, 2015, 1:11pm UTC](https://discourse.hanakai.org/t/support-i18n-translation/18 "2015-06-28T13:11:29Z")

</div>

I’m creating this proposal to start a discussion on i18n support feature. So, any plans on a internationalization module or integration with a gem? svenfuchs/i18n seems to be the most popular.

---

## [Value Objects in Lotus::Model](https://discourse.hanakai.org/t/value-objects-in-lotus-model/77)

<div class="topic-metadata">

**Author:** [@darwinrc](https://discourse.hanakai.org/u/darwinrc)\
**Replies:** 0\
**Last updated:** [April 20, 2015, 2:24am UTC](https://discourse.hanakai.org/t/value-objects-in-lotus-model/77 "2015-04-20T02:24:26Z")

</div>

Good day, all I’m wondering if you have considered adding the concept of Value Objects (as explained in Eric Evans’ Domain Driven Design Book) in Lotus::Model. I don’t think Value Objects should be treated as Lotus::En…

---

## [Automapper for request and response models](https://discourse.hanakai.org/t/automapper-for-request-and-response-models/74)

<div class="topic-metadata">

**Author:** [@darwinrc](https://discourse.hanakai.org/u/darwinrc)\
**Replies:** 0\
**Last updated:** [April 7, 2015, 2:21pm UTC](https://discourse.hanakai.org/t/automapper-for-request-and-response-models/74 "2015-04-07T14:21:20Z")

</div>

Is there anything similar to automapper (Getting started · AutoMapper/AutoMapper Wiki · GitHub) available in Lotus? I think it is an important concept in a layered architecture. Do you have any idea for implementing Re…

---

## [Discussion about Lotus::View directions](https://discourse.hanakai.org/t/discussion-about-lotus-view-directions/60)

<div class="topic-metadata">

**Author:** [@edzhelyov](https://discourse.hanakai.org/u/edzhelyov)\
**Replies:** 3\
**Last updated:** [March 17, 2015, 2:49pm UTC](https://discourse.hanakai.org/t/discussion-about-lotus-view-directions/60 "2015-03-17T14:49:19Z")

</div>

In all real world RoR projects I have worked or know about the view layer is used to render UI, no one is serving content. Most of them have complex UI screens with a lot of reusable elements that are present not only on…

---

## [Supported Ruby VMs](https://discourse.hanakai.org/t/supported-ruby-vms/28)

<div class="topic-metadata">

**Author:** [@jodosha](https://discourse.hanakai.org/u/jodosha)\
**Replies:** 12\
**Last updated:** [February 11, 2015, 12:14pm UTC](https://discourse.hanakai.org/t/supported-ruby-vms/28 "2015-02-11T12:14:44Z")

</div>

Hi all, The scope of Lotus is huge and ambitious. We're working only on volunteering time of all the great people around the framework. What we achieved until now is remarkable, but to complete what's in our roadmap in…

---

## [Generator for application (or slice)](https://discourse.hanakai.org/t/generator-for-application-or-slice/21)

<div class="topic-metadata">

**Author:** [@AlfonsoUceda](https://discourse.hanakai.org/u/AlfonsoUceda)\
**Replies:** 12\
**Last updated:** [February 10, 2015, 1:25pm UTC](https://discourse.hanakai.org/t/generator-for-application-or-slice/21 "2015-02-10T13:25:01Z")

</div>

Hi: It would a good idea create a new command bundle exec lotus add this command will create a new application inside apps folder, e.g: bundle exec lotus generate app admin and then it will create the needed files ins…

---

## [Security features for v0.3.0](https://discourse.hanakai.org/t/security-features-for-v0-3-0/34)

<div class="topic-metadata">

**Author:** [@jodosha](https://discourse.hanakai.org/u/jodosha)\
**Replies:** 8\
**Last updated:** [January 28, 2015, 2:08pm UTC](https://discourse.hanakai.org/t/security-features-for-v0-3-0/34 "2015-01-28T14:08:50Z")

</div>

As part of the "security first" policy, we want to include the following changes for Lotus v0.3.0. Markup escape This involves three frameworks, Utils, View and Helpers. Lotus::Utils::Escape This is a module that o…

[Previous page](https://discourse.hanakai.org/c/proposals/6.md)
