Giter VIP home page Giter VIP logo

amrani / rails_modular_monolith_demo Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 0.0 3.07 MB

An introduction in creating, testing, and configuring Ruby on Rails Engines

Home Page: https://hocnest.com/blog/create-user-rails-engine/

Ruby 80.45% JavaScript 5.22% CSS 1.64% HTML 12.69%
rails modular-monolith devise rmm architecture engines rails-engines demo rails-tutorial rails-modular-monolith

rails_modular_monolith_demo's Introduction

rails_modular_monolith_demo's People

Contributors

amrani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rails_modular_monolith_demo's Issues

Configuration block is not really scoped by engine

Hi!

I was following your article on this topic and found out that when you run

ConnectBy.configure do |config|
  config.application_controller = "ApplicationController"
end

the object you yield is actually a subclass of Rails::Engine, not an instance of it. This means that if you have multiple initializers that configure multiple engines they're all going to overwrite whatever the previous initializer configured.

You can give it a try by adding another engine (let's say... ChatBy) and trying to setup a different application_controller for it. You'll find that now ConnectBy will have the application_controller you set for ChatBy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.