-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.try
doesn't work in the server?
#340
Comments
This is a known issue with the configuration gem we use to configure stuff with. If anyone wants to head up getting a fix for this let me know. Otherwise, I'll try and get to it soon (since I've hit this a few times myself) |
Thanks Ryan! ^_^ |
Hello @myknbani Volt uses the I tested locally and was able to access the value by using Note: Reason: Possible Solution:
There might be some better solutions that you could come up with but at least you could poke at it in the
More information about the configurations gem can be found here: https://github.com/beatrichartz/configurations#first-way-arbitrary-configuration Here is where the volt framework requires it: https://github.com/voltrb/volt/blob/master/lib/volt/config.rb#L44 |
Yes not using Not using Opal
MRI
I think the deeper issue here is that public configs in Volt are meant to be isomorphic. |
I tried creating a user in rspec, using the
username
for thelogin_field
.I have this line in config/app.rb
config.public.auth.use_username = true
This code in user.rb
produces
nil
andemail
on the server and RSpecwhile in the browser console, it produces
Also,
try
is added to the Object class, but Volt.config seems to be a BasicObjectThe text was updated successfully, but these errors were encountered: