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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -