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
Byte calculations do not work (x.megabytes, x.gigabytes, etc) #19
Comments
if the config file is in yaml format then this shouldn't be possible as i don't think you can do interpretations in yaml, just a flat file. could always be wrong |
@rdubya could we pass YAML file trough ruby engine before loading it? This could be a nice feature, what you think? |
Doesn't it already get ran through ERB? Seems like this is an issue with dependencies not being loaded since those methods come from ActiveSupport iirc |
This already seems to work on 2.0.0, I just verified. Since this issue was filed 8 years ago, maybe @uberllama's version didn't support ERB? settings_group:
max: "max"
min: "min"
other: "other" > Settings.settings_group.max
=> [:other, "other"]
> Settings.settings_group.min
=> [:max, "max"]
> Settings.settings_group.other
=> "other" I'm going to file a separate issue for that, but seems like this issue can be closed. |
I can't remember what I had for breakfast this morning, let alone what bugs I had 8 years ago. 😂 |
Hahaha, indeed :) Haven't noticed it's so old :) I will close this one and look into #234 separately. |
I tried to implement a settings as follows:
threshold: <%=10.megabytes%>
max: <%=1.gigabyte%>
...but it doesn't seem to be supported. Not using ERB tags results in a string.
The text was updated successfully, but these errors were encountered: