Sha256: 042dee9bdcc4a30eb56360cbcaf9ccc6466a098f147f274970fcacbeb32d09c1
Contents?: true
Size: 652 Bytes
Versions: 15
Compression:
Stored size: 652 Bytes
Contents
module WebConsole::Dependencies class View < WebConsole::View BASE_DIRECTORY = File.join(File.dirname(__FILE__), '..') VIEWS_DIRECTORY = File.join(BASE_DIRECTORY, "views") VIEW_TEMPLATE = File.join(VIEWS_DIRECTORY, 'view.html.erb') def initialize super self.base_url_path = File.expand_path(BASE_DIRECTORY) load_erb_from_path(VIEW_TEMPLATE) end ADD_MISSING_DEPENDENCY_FUNCTION = "addMissingDependency" def add_missing_dependency(name, type, installation_instructions = nil) self.do_javascript_function(ADD_MISSING_DEPENDENCY_FUNCTION, [name, type, installation_instructions]) end end end
Version data entries
15 entries across 15 versions & 1 rubygems