left4me/rails/app/models/setup.rb
mwiegand abf55c9af1
wip
2022-11-27 18:41:02 +01:00

12 lines
288 B
Ruby

class Setup < ApplicationRecord
has_many :key_binds
has_many :wheels
has_many :menus
has_many :input_devices
def render
key_binds.collect { |key_bind|
%(alias batch#{id} \"#{key_bind.batch.render}\"\nbind #{key_bind.key.ingame} batch#{id})
}.join("\n")
end
end