Module: Firewall

Defined in:
lib/firewall.rb,
lib/firewall/config.rb,
lib/firewall/engine.rb,
lib/firewall/version.rb,
app/helpers/firewall/rule_helper.rb,
app/helpers/firewall/iptables_helper.rb,
app/helpers/firewall/dashboard_helper.rb,
app/helpers/firewall/application_helper.rb,
app/helpers/firewall/custom_rules_helper.rb,
app/controllers/firewall/rules_controller.rb,
app/helpers/firewall/url_protections_helper.rb,
app/controllers/firewall/dashboard_controller.rb,
app/controllers/firewall/application_controller.rb,
app/controllers/firewall/custom_rules_controller.rb,
app/controllers/firewall/url_protections_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, Config, CustomRulesHelper, DashboardHelper, IptablesHelper, RuleHelper, UrlProtectionsHelper Classes: ApplicationController, CustomRulesController, DashboardController, Engine, RulesController, UrlProtectionsController

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.config(&block) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/firewall.rb', line 6

def self.config(&block)
  if block_given?
    block.call(Firewall::Config)
  else
    Firewall::Config
  end
end