aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin/blog
diff options
context:
space:
mode:
authorAmanda Wagener <amanda@resolvedigital.co.nz>2010-12-01 11:43:26 +1300
committerAmanda Wagener <amanda@resolvedigital.co.nz>2010-12-01 11:43:26 +1300
commitc38d9c3da5b9b21df07c4c7ebc8617413977c7fb (patch)
tree6feb6b3557630c5243eead5307320660a8201f2a /app/views/admin/blog
parenta1f7ea061ea2c9694a383c8d20137628a178d979 (diff)
downloadrefinerycms-blog-c38d9c3da5b9b21df07c4c7ebc8617413977c7fb.tar.gz
refinerycms-blog-c38d9c3da5b9b21df07c4c7ebc8617413977c7fb.tar.bz2
refinerycms-blog-c38d9c3da5b9b21df07c4c7ebc8617413977c7fb.zip
Remove all Rails2/Rails3 checks as master is now Rails3 only
Diffstat (limited to 'app/views/admin/blog')
-rw-r--r--app/views/admin/blog/categories/_form.html.erb14
-rw-r--r--app/views/admin/blog/posts/_form.html.erb14
2 files changed, 10 insertions, 18 deletions
diff --git a/app/views/admin/blog/categories/_form.html.erb b/app/views/admin/blog/categories/_form.html.erb
index 28227ae..4f1809a 100644
--- a/app/views/admin/blog/categories/_form.html.erb
+++ b/app/views/admin/blog/categories/_form.html.erb
@@ -1,13 +1,9 @@
<% form_for [:admin, @blog_category] do |f| -%>
- <% if Rails.version < '3.0.0'%>
- <%= f.error_messages %>
- <% else %>
- <%= render :partial => "/shared/admin/error_messages",
- :locals => {
- :object => f.object,
- :include_object_name => true
- } %>
- <% end %>
+ <%= render :partial => "/shared/admin/error_messages",
+ :locals => {
+ :object => f.object,
+ :include_object_name => true
+ } %>
<div class='field'>
<%= f.label :title -%>
diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb
index 5779e4c..29585ea 100644
--- a/app/views/admin/blog/posts/_form.html.erb
+++ b/app/views/admin/blog/posts/_form.html.erb
@@ -1,13 +1,9 @@
<% form_for [:admin, @blog_post] do |f| -%>
- <% if Rails.version < '3.0.0'%>
- <%= f.error_messages %>
- <% else %>
- <%= render :partial => "/shared/admin/error_messages",
- :locals => {
- :object => f.object,
- :include_object_name => true
- } %>
- <% end %>
+ <%= render :partial => "/shared/admin/error_messages",
+ :locals => {
+ :object => f.object,
+ :include_object_name => true
+ } %>
<div class='field'>
<%= f.label :title -%>