lib/maquina.rb in maquina-0.1.0 vs lib/maquina.rb in maquina-0.2.0
- old
+ new
@@ -13,25 +13,28 @@
attr_accessor :configuration
end
class Configuration
attr_accessor :password_retain_count, :temporary_block, :session_expiration, :signin_attempts, :tailwind_content,
- :importmap, :root_app_path
+ :importmap, :root_app_path, :membership_roles
def initialize
@password_retain_count = 3
@temporary_block = 5.minutes
@session_expiration = 2.days
@signin_attempts = 5
- @importmap = Importmap::Map.new
@root_app_path = nil
+ @membership_roles = {admin: "admin", member: "member"}
+
+ @importmap = Importmap::Map.new
+ @importmap.draw(Engine.root.join("config/importmap.rb"))
+
@tailwind_content = [
"#{Maquina::Engine.root}/app/views/**/*.{rb,erb}",
"#{Maquina::Engine.root}/app/helpers/**/*.rb",
"#{Maquina::Engine.root}/app/controllers/**/*.rb",
- "#{Maquina::Engine.root}/app/javascript/**/*.js",
- "#{Maquina::Engine.root}/app/assets/**/application.tailwind.css"
+ "#{Maquina::Engine.root}/app/javascript/**/*.js"
]
end
end
def self.init_config