jeromegn / dry-types-rails Goto Github PK
View Code? Open in Web Editor NEWDry::Types railties
License: MIT License
Dry::Types railties
License: MIT License
Hi! When I add this gem into the project it somehow redefines Types
module which is defined like this in my project
module Types
include Dry::Types.module
end
When I try to use types in my classes
attribute :phone, Types::String
I get an error uninitialized constant Types::String
.
If I remove this gem and leave only dry-types
in Gemfile
the error is gone.
The code of this gem is really simple but I can't understand why it behaves this way.
Hi!
Thanks for your contribution and this gem! When running Rails in development environment, I'm getting
Loading development environment (Rails 4.2.5)
2.2.0 :001 > reload!
Reloading...
NameError: instance variable @container not defined
which I simply monkey–patched with:
if Dry::Data.instance_variable_defined?(:@container)
Dry::Data.remove_instance_variable :@container
end
Quite weird, though. Have you experienced similar behaviour? I'm sticked to dry-data
v0.5.1.
I'm getting the following error when trying to start the rails server in dev mode while using this gem.
dry-logic-0.2.3/lib/dry/logic/rule_compiler.rb:18:in visit': undefined method
visit_String' for #Dry::Logic::RuleCompiler:0x000000053c0cf8 (NoMethodError)
I'm running rails 4.2, ruby 2.3.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.