This file contains 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
# This class is needed since Mongoid doesn't support Multi-parameter | |
# attributes in version 4.0 before it's moved to active model in rails 4 | |
# | |
# https://github.com/mongoid/mongoid/issues/2954 | |
# | |
require "spec_helper" | |
describe Mongoid::MultiParameterAttributes do |
This file contains 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
require 'redis' | |
class Redis | |
module Connection | |
class Ruby | |
def self.restus | |
puts 'non overriden' | |
end | |
def self.connect(config) |
This file contains 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
Attributes::Extract.(params, schema: schema) |