Sha256: 966d58738cd2430d20bcc1c7f3eb237b70faa96ac0a4e5a7d298f16bc09a452f
Contents?: true
Size: 315 Bytes
Versions: 3
Compression:
Stored size: 315 Bytes
Contents
if Rails.application.config.aa_associations.autocomplete_models models = Rails.application.config.aa_associations.autocomplete_models.join('|') Rails.application.routes.draw do match '/autocomplete/:model' => 'autocomplete#index', :model => /(#{models})/, :defaults => { :format => 'json' } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aa_associations-0.1.2 | config/routes.rb |
aa_associations-0.1.1 | config/routes.rb |
aa_associations-0.1.0 | config/routes.rb |