lib/pugin/feature/bandiera.rb in pugin-0.7.1 vs lib/pugin/feature/bandiera.rb in pugin-0.8.0
- old
+ new
@@ -10,9 +10,19 @@
def register_to_vote?
get_features
@features.fetch('show-register', false)
end
+ def election?
+ get_features
+
+ @features.fetch('show-election', false)
+ end
+ def post_election?
+ get_features
+
+ @features.fetch('show-post-election', false)
+ end
# Reset cached features
def reset
@features = nil
end
\ No newline at end of file