summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb11
-rw-r--r--app/helpers/export_helper.rb2
-rw-r--r--app/helpers/location_helper.rb3
-rw-r--r--app/helpers/net_helper.rb2
-rw-r--r--app/helpers/node_helper.rb2
-rw-r--r--app/helpers/person_helper.rb2
6 files changed, 22 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
new file mode 100644
index 0000000..ebf937a
--- /dev/null
+++ b/app/helpers/application_helper.rb
@@ -0,0 +1,11 @@
+# Methods added to this helper will be available to all templates in the application.
+module ApplicationHelper
+ def ifnil(value=nil)
+ yield
+ rescue NoMethodError
+ raise unless $!.message =~ /:NilClass$/
+ value
+ end
+
+
+end
diff --git a/app/helpers/export_helper.rb b/app/helpers/export_helper.rb
new file mode 100644
index 0000000..34acf5f
--- /dev/null
+++ b/app/helpers/export_helper.rb
@@ -0,0 +1,2 @@
+module ExportHelper
+end
diff --git a/app/helpers/location_helper.rb b/app/helpers/location_helper.rb
new file mode 100644
index 0000000..16aee7c
--- /dev/null
+++ b/app/helpers/location_helper.rb
@@ -0,0 +1,3 @@
+module LocationHelper
+
+end
diff --git a/app/helpers/net_helper.rb b/app/helpers/net_helper.rb
new file mode 100644
index 0000000..908cd46
--- /dev/null
+++ b/app/helpers/net_helper.rb
@@ -0,0 +1,2 @@
+module NetHelper
+end
diff --git a/app/helpers/node_helper.rb b/app/helpers/node_helper.rb
new file mode 100644
index 0000000..ff049b0
--- /dev/null
+++ b/app/helpers/node_helper.rb
@@ -0,0 +1,2 @@
+module NodeHelper
+end
diff --git a/app/helpers/person_helper.rb b/app/helpers/person_helper.rb
new file mode 100644
index 0000000..f5c74cd
--- /dev/null
+++ b/app/helpers/person_helper.rb
@@ -0,0 +1,2 @@
+module PersonHelper
+end