Skip to content

Commit

Permalink
Always show search for plan files and surveyors
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Soltys committed Feb 26, 2012
1 parent 4a0b5fe commit dc3cbee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/controllers/plan_files_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ class PlanFilesController < ApplicationController
config.list.columns = [:plan_number, :location, :size, :title, :tiff_file]
config.columns[:plan_number].set_link(:edit)
config.update.columns.exclude [:location, :drawings]
config.list.always_show_search = true
end
end
9 changes: 5 additions & 4 deletions app/controllers/surveyors_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
class SurveyorsController < ApplicationController
active_scaffold :surveyor do |conf|
conf.list.columns = [:first_name, :last_name, :city]
conf.columns[:first_name].set_link(:edit)
conf.columns[:last_name].set_link(:edit)
active_scaffold :surveyor do |config|
config.list.columns = [:first_name, :last_name, :city]
config.columns[:first_name].set_link(:edit)
config.columns[:last_name].set_link(:edit)
config.list.always_show_search = true
end
end

0 comments on commit dc3cbee

Please sign in to comment.