Permalink
Browse files

final fixes

  • Loading branch information...
1 parent 61189ac commit 4e95bbbd4ba6f9c83bc4de636d396f0a373dafec @lenary lenary committed Jan 10, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/qadmin/configuration.rb
  2. +1 −1 lib/qadmin/helper.rb
@@ -100,7 +100,7 @@ class Index < Action
hash_accessor :columns, :default => []
hash_accessor :column_headers, :default => {}
hash_accessor :column_css, :default => {}
- hash_accessor :row_actions, :default => [:show, :edit, :destroy]
+ hash_accessor :row_controls, :default => [:show, :edit, :destroy]
hash_accessor :attribute_handlers, :default => {}
def initialize(options = {})
View
@@ -96,7 +96,7 @@ def admin_table(collection, options = {})
:index => [:show,:edit,:destroy]
}
- row_control_set = options[:row_actions] || config.row_actions
+ row_control_set = options[:row_controls] || config.row_controls
row_control_set.unshift(row_control_sets[options[:for]]) if options[:for]
row_controls = [row_control_set].flatten.collect{|c| row_control_links(options[:row_control_links])[row_control] }.compact

0 comments on commit 4e95bbb

Please sign in to comment.