aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorAlban Peignier2012-04-16 12:23:20 +0200
committerAlban Peignier2012-04-16 12:23:20 +0200
commita3b6f1c459e409023a1ef531e4f6f8084731a8f9 (patch)
tree21b564a590d52d77aeb658ce1a84f38eee831193 /app/helpers
parent1bf7ec8772b41ee03f60cd5a148225fb4df85794 (diff)
downloadchouette-core-a3b6f1c459e409023a1ef531e4f6f8084731a8f9.tar.bz2
Uses Referential in header only when selected. Fixes #11
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index a01ee1ed4..cf6486306 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,3 +1,8 @@
module ApplicationHelper
+
+ def selected_referential?
+ @referential.present? and not @referential.new_record?
+ end
+
end