Permalink
Browse files

(2) - example joined columns (grid configs)

  • Loading branch information...
vanstyn committed Sep 12, 2013
1 parent 3fe7a8f commit aae6591d2086aa16a42d02c287671504454410c8
Showing with 19 additions and 1 deletion.
  1. +6 −0 cmd_history.sh
  2. +13 −1 lib/RA/ChinookDemo.pm
@@ -187,3 +187,9 @@ vim lib/RA/ChinookDemo.pm
# - Needed because local app controllers always take precidence
rm -f lib/RA/ChinookDemo/Controller/Root.pm
Commit '(1) - Bare-bones working app (RapidDbic)'
# Start the test server:
script/ra_chinookdemo_server.pl
#
# Configure joined columns
vim lib/RA/ChinookDemo.pm
Commit '(2) - example joined columns (grid configs)'
@@ -23,7 +23,19 @@ __PACKAGE__->config(

'Plugin::RapidApp::RapidDbic' => {
# Only required option:
dbic_models => ['DB']
dbic_models => ['DB'],
configs => { # Model Configs
DB => { # Configs for the model 'DB'
grid_params => {
Album => {
include_colspec => ['*','artistid.name']
},
Track => {
include_colspec => ['*','albumid.artistid.*']
},
}, # (grid_params)
}, # (DB)
}, # (configs)
}, # ('Plugin::RapidApp::RapidDbic')
);

0 comments on commit aae6591

Please sign in to comment.