Revision b729fb04
Added by Paul Kelly almost 14 years ago
- ID b729fb042c3c82172050a0fe477c6ff9f2c2174d
app/controllers/fact_values_controller.rb | ||
---|---|---|
# avoids storing the facts data in the log files
|
||
filter_parameter_logging :facts
|
||
|
||
active_scaffold :fact_value do |config|
|
||
config.list.columns = [:name, :value, :host]
|
||
config.actions = [:list]
|
||
config.columns = [:name, :value]
|
||
config.columns[:name].sort = true
|
||
config.columns[:name].sort_by :method => 'name'
|
||
config.actions.add :list_filter
|
||
config.list_filter.add(:association, :fact_name)
|
||
def index
|
||
@search = FactValue.search(params[:search])
|
||
@fact_values = @search.paginate :page => params[:page], :include => [:fact_name, { :host => :domain }]
|
||
@via = ""
|
||
end
|
||
|
||
def create
|
Also available in: Unified diff
Fixes #212 - Remove AS from facts