Support for multi parameters value assigment (date, datetime)#16
Open
Support for multi parameters value assigment (date, datetime)#16
Conversation
|
I would love to have something like this work so simple form could infer the data type. Is the build failure a no-go? |
Owner
Author
|
I couldn't figure how to make it work sorry :/ |
|
No problem. Thanks for the quick response. FYI: I solved my particular issue by patching SimpleForm to know about TypedStore instead of rails # Extend simple form to know about activerecord-typedstore columns
class SimpleForm::FormBuilder
def find_attribute_column_with_typed_store(attribute_name)
if @object.class.respond_to?(:typed_store_attributes)
col = @object.class.typed_store_attributes[attribute_name.to_s]
end
col || find_attribute_column_without_typed_store(attribute_name)
end
alias_method_chain :find_attribute_column, :typed_store
end |
Owner
Author
|
Good to know. Hopefully with the new rails APIs available in 4.2 I might be able to make it work, but it's too soon to be sure. |
0f4bbdc to
f85e346
Compare
a9ea2c5 to
97478f7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #15