Skip to content

Commit

Permalink
Move engine into its own file
Browse files Browse the repository at this point in the history
This is the typical configuration of an Rails engine
  • Loading branch information
ramontayag authored and mbulat committed Oct 31, 2019
1 parent 8220417 commit 2f77381
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/plutus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
require "rails"

module Plutus
class Engine < Rails::Engine
isolate_namespace Plutus
end


# ------------------------------ tenancy ------------------------------
# configuration to enable or disable tenancy
mattr_accessor :enable_tenancy
Expand All @@ -21,3 +16,5 @@ def self.config
yield(self)
end
end

require "plutus/engine"
5 changes: 5 additions & 0 deletions lib/plutus/engine.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Plutus
class Engine < Rails::Engine
isolate_namespace Plutus
end
end

0 comments on commit 2f77381

Please sign in to comment.