Sha256: ccaf1e6863ae9d600ddfcee2494495d7df17ce1bd68be06721fa2c5f23cec4c9

Contents?: true

Size: 738 Bytes

Versions: 9

Compression:

Stored size: 738 Bytes

Contents

AdminData.config do |config|

  config.number_of_records_per_page = 2

  config.is_allowed_to_view = lambda {|_| return true}
  config.is_allowed_to_update = lambda {|_| return true}

  config.feed_authentication_user_id = 'admin_data'
  config.feed_authentication_password = 'welcome'

  config.find_conditions = {'City' => lambda { |params| {:conditions => ["name =?", params[:id]] }}}


  config.column_settings = { 'City'  => { :data => lambda { |model| model.send(:data).to_a.flatten.inspect } } }

  config.drop_down_for_associations = { 'PhoneNumber' => false}

  config.columns_order = {'Website' => [:dns_provider, :user_id] }

  config.column_headers = {'City' => {:id => 'ID', :name => 'City Name', :data => 'City Info'}}

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
admin_data-1.1.8 test/rails_root/config/initializers/admin_data.rb
admin_data-1.1.7 test/rails_root/config/initializers/admin_data.rb
admin_data-1.1.6 test/rails_root/config/initializers/admin_data.rb
admin_data-1.1.5 test/rails_root/config/initializers/admin_data.rb
admin_data-1.1.4 test/rails_root/config/initializers/admin_data.rb
admin_data-1.1.3 test/rails_root/config/initializers/admin_data.rb
admin_data-1.1.2 test/rails_root/config/initializers/admin_data.rb
admin_data-1.1.1 test/rails_root/config/initializers/admin_data.rb
admin_data-1.1.0 test/rails_root/config/initializers/admin_data.rb