Skip to content

Commit

Permalink
Move notice helper to application layout
Browse files Browse the repository at this point in the history
  • Loading branch information
dovadi committed Apr 14, 2014
1 parent 4db2f19 commit d8522ec
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/models/participant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Participant < ActiveRecord::Base

after_save :assign_participation_if_valid

auto_strip_attributes :zipcode, :delete_whitespaces => true
auto_strip_attributes :zipcode, :delete_whitespaces => true

def attributes
super.merge('distance' => distance, 'activity_id' => activity_id)
Expand Down
2 changes: 0 additions & 2 deletions app/views/Participations/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<p id="notice"><%= notice %></p>

<p>
<strong><%= t('activerecord.attributes.participant.firstname') + ':' %></strong>
<%= @participation.participant.firstname %>
Expand Down
2 changes: 0 additions & 2 deletions app/views/activities/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<p id="notice"><%= notice %></p>

<p>
<strong><%= t('activerecord.attributes.activity.name') + ':' %></strong>
<%= @activity.name %>
Expand Down
2 changes: 0 additions & 2 deletions app/views/categories/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<p id="notice"><%= notice %></p>

<p>
<strong>Activity:</strong>
<%= @category.activity.name %>
Expand Down
1 change: 1 addition & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</head>
<body>

<p id="notice"><%= notice %></p>
<%= yield %>

</body>
Expand Down
2 changes: 0 additions & 2 deletions app/views/participants/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<p id="notice"><%= notice %></p>

<p>
<strong><%= t('activerecord.attributes.participant.firstname') + ':' %></strong>
<%= @participant.firstname %>
Expand Down

0 comments on commit d8522ec

Please sign in to comment.