Sha256: dbef867ac0f650ebaf4e3964602bf79c02cb406a23e5c69151735511b72831d2

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

module AngularSprinkles
  class FormBinder
    class CheckBox < Base
      private

      def args_with_binding
        binding = { 'ng-model' => @attribute_binding }

        @args.tap do |args|
          if args.many?
            args.second.reverse_merge!(binding)
          else
            args.push(binding)
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
angular_sprinkles-0.2.0 lib/angular_sprinkles/form_binder/check_box.rb