diff options
| author | Alban Peignier | 2012-04-16 12:23:20 +0200 |
|---|---|---|
| committer | Alban Peignier | 2012-04-16 12:23:20 +0200 |
| commit | a3b6f1c459e409023a1ef531e4f6f8084731a8f9 (patch) | |
| tree | 21b564a590d52d77aeb658ce1a84f38eee831193 /app/helpers | |
| parent | 1bf7ec8772b41ee03f60cd5a148225fb4df85794 (diff) | |
| download | chouette-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.rb | 5 |
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 |
