GithubHelp home page GithubHelp logo

dry-types-rails's People

Contributors

jeromegn avatar lluzak avatar pnomolos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dry-types-rails's Issues

Custom types not working

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.

reload! from Rails console throws exception

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.

undefined method `visit_String'

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 methodvisit_String' for #Dry::Logic::RuleCompiler:0x000000053c0cf8 (NoMethodError)

I'm running rails 4.2, ruby 2.3.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.