[Rails] Re: How to Patch the Console?

2017-02-06 Thread hartmut bischoff
This works perfectly if inserted in the application-block. Thanks alot. Am Montag, 6. Februar 2017 15:53:45 UTC+1 schrieb Frederick Cheung: > > > > On Monday, February 6, 2017 at 9:41:49 AM UTC, hartmut bischoff wrote: >> >> Hi everbody, >> >> I am working on a Rails Project using OrientDB as

[Rails] auto session gem / auto session warning gem?

2017-02-06 Thread Joe Guerra
Has anyone used these two gems in their web app? I added them to my gem file, and did a bundle install. I was trying to find out where it stuck the javascript files. Anyways, I set it to expire within 10 minutes, no luck yet. I have the following in my application.js file... //= require

[Rails] Re: How to Patch the Console?

2017-02-06 Thread Frederick Cheung
On Monday, February 6, 2017 at 9:41:49 AM UTC, hartmut bischoff wrote: > > Hi everbody, > > I am working on a Rails Project using OrientDB as Database ( > https://github.com/topofocus/active-orient ) > This gem initializes any available database-class and assigns it to > model-classes. > > For

Re: [Rails] How to Patch the Console?

2017-02-06 Thread Marco Antonio Almeida
Hi Hartmut, My suggestion would be to add your code in the initialisers folder, something like config/initializers/console.rb and this will run after Rails has initialised its environment. However this will run every time you run a rails or rake command, so to avoid that you could add something

[Rails] How to Patch the Console?

2017-02-06 Thread hartmut bischoff
Hi everbody, I am working on a Rails Project using OrientDB as Database ( https://github.com/topofocus/active-orient ) This gem initializes any available database-class and assigns it to model-classes. For me its convenient to recognize, which database-classes are found, when starting the