Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh committed Jun 1, 2012
1 parent b4ecedd commit ac1d8cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/controllers/admin_data/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ def build_drop_down_for_klasses
@drop_down_for_klasses = @klasses.inject([]) do |result, klass|
result << [klass.name.underscore, search_url(:klass => klass.name.underscore)]
end

if @drop_down_for_klasses.blank?
raise 'before filter is not being executed'
end
end

def check_page_parameter
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin_data/shared/_drop_down_klasses.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<select class='drop_down_value_klass' id='drop_down_klasses'>
<option></option>
<%= options_for_select(drop_down_for_klasses, @drop_down_url) %>
<%= options_for_select(@drop_down_for_klasses, @drop_down_url) %>
<option value="<%=migration_information_path%>">Migration Information</option>
</select>

0 comments on commit ac1d8cc

Please sign in to comment.