Rails 7: run engine initializer in to_prepare; update gemspec author info

This commit is contained in:
rulingcom committed 2026-10-14 14:02:59 +08:00
1 parent 806bb862c2
commit 7663d678dc
2 files changed
+6 -5

No files matched your search

+3 -3
View File
@@ -22,9 +22,9 @@ end
Gem::Specification.new do |s|
s.name = "active"
s.version = Active::VERSION
s.authors = ["RulingDigital"]
s.email = ["orbit@rulingcom.com"]
s.homepage = "http://www.rulingcom.com"
s.authors = ["Orbitek"]
s.email = ["service@orbitek.co"]
s.homepage = "https://orbitek.co/"
s.summary = "Actives for Orbit"
s.description = "Actives for Orbit"
s.license = "MIT"
+3 -2
View File
@@ -1,6 +1,7 @@
module Active
class Engine < ::Rails::Engine
initializer "active" do
Rails.application.config.to_prepare do
OrbitApp.registration "Active", :type => "ModuleApp" do
module_label "act.active"
base_url File.expand_path File.dirname(__FILE__)
@@ -40,8 +41,8 @@ module Active
:active_for_action=>{'admin/actives'=>'active_agreements'},
:available_for => 'managers'
end
end
end
end
end
end
end