Hello,

I am trying to convert three applications to multitenant, all of them have 
same structure difference is only in little functions and template designs.
All of them using cattr_accessor for setting currencies and other data, and 
it works perfectly

Now i added app_id as cattr_accessor to App model to use it in 
default_scope to implement multi-tenancy

class App < ActiveRecord::Base
  attr_accessible :active, :name
  cattr_accessor :app_id, :app_name
end

on development mode no problem, but in production values are not accessible 
in models.
also tried to use Thread.current, same result, on production does not work.


Vasily

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/OXEX4BbtQPUJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to