ruby on rails - subdomain-fu gem tld_size -


what mean tld_size in subdomain-fu gem. example deafult having,

  subdomainfu.tld_sizes = {:development => 1,    :test => 0,    :production => 1} 

in initializers/subdomain-fu.rb

i have debugged , found answer,

if config follows means,

 subdomainfu.tld_sizes = {:development => 1,   :test => 0,   :production => 1} 

if url test.lvh.me:3000 means subdomain-fu gem's current_subdomain return test. if set tld_size below,

 subdomainfu.tld_sizes = {:development => 1,   :test => 0,   :production => 0} 

then url test.lvh.me:3000 means subdomain-fu gem's current_subdomain return test.lvh

thanks...


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -