class Lanes::SystemSettings::ExtensionSettings
Public Class Methods
new(ext_id, settings)
click to toggle source
Calls superclass method
# File lib/lanes/system_settings.rb, line 14 def initialize(ext_id, settings) @extension_id = ext_id super(settings) end
Public Instance Methods
apply!()
click to toggle source
# File lib/lanes/system_settings.rb, line 21 def apply! require 'shrine/storage/file_system' ext = Extensions.controlling Lanes::Concerns::AssetUploader.storages = { cache: Shrine::Storage::FileSystem.new(ext.root_path, prefix: "tmp/cache"), store: Shrine::Storage::FileSystem.new(ext.root_path, prefix: "public/files") } end
persist!()
click to toggle source
# File lib/lanes/system_settings.rb, line 18 def persist! SystemSettings.persist!(@extension_id, self.to_h) end