Sha256: 996fe25d97a7e0101aa992ba71536bed90b3580a2f7d0c745d4848638c9b69a8
Contents?: true
Size: 863 Bytes
Versions: 3
Compression:
Stored size: 863 Bytes
Contents
# frozen_string_literal: true require "rubanok/version" require "rubanok/plane" require "rubanok/railtie" if defined?(Rails) if defined?(RSpec) && (ENV["RACK_ENV"] == "test" || ENV["RAILS_ENV"] == "test") require "rubanok/rspec" end # Rubanok provides a DSL to build parameters-based data transformers. # # Example: # # class CourseSessionPlane < Rubanok::Plane # map :q do |q:| # raw.searh(q) # end # end # # class CourseSessionController < ApplicationController # def index # @sessions = planish(CourseSession.all) # end # end module Rubanok class << self # Define whether to ignore empty values in params or not. # When the value is empty and ignored the corresponding matcher/mapper # is not activated (true by default) attr_accessor :ignore_empty_values end self.ignore_empty_values = true end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubanok-0.1.3 | lib/rubanok.rb |
rubanok-0.1.1 | lib/rubanok.rb |
rubanok-0.1.0 | lib/rubanok.rb |