lib/webconsole/dependencies/lib/controller.rb in webconsole-0.1.18 vs lib/webconsole/dependencies/lib/controller.rb in webconsole-0.1.19
- old
+ new
@@ -12,25 +12,23 @@
def missing_dependency(dependency)
name = dependency.name
type = self.class.string_for_type(dependency.type)
options = dependency.options
-
if options.has_key?(:installation_instructions)
installation_instructions = options[:installation_instructions]
end
-
@view.add_missing_dependency(name, type, installation_instructions)
end
private
def self.string_for_type(type)
case type
when :shell_command
return "shell command"
end
- return nil
+ nil
end
end
end
\ No newline at end of file