Sha256: c56109bceb33b6e8f8f02cf612e83c5a0df920f07c9357e7f5a2be30246d9f65

Contents?: true

Size: 1.53 KB

Versions: 1

Compression:

Stored size: 1.53 KB

Contents

lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "active_record/nested_attributes/destroy_if/version"

Gem::Specification.new do |spec|
  spec.name          = "active_record-nested_attributes-destroy_if"
  spec.version       = ActiveRecord::NestedAttributesDestroyIf::VERSION
  spec.authors       = ["Micah Geisel"]
  spec.email         = ["micah@botandrose.com"]

  spec.summary       = "Adds :destroy_if option to accepts_nested_attributes_for"
  spec.description   = "Adds :destroy_if option to accepts_nested_attributes_for, which is basically a stronger version of :reject_if that destroys existing records, too."
  spec.homepage      = "https://github.com/botandrose/active_record-nested_attributes-destroy_if"
  spec.license       = "MIT"

  # Specify which files should be added to the gem when it is released.
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
  spec.files         = Dir.chdir(File.expand_path('..', __FILE__)) do
    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
  end
  spec.bindir        = "exe"
  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
  spec.require_paths = ["lib"]

  spec.add_dependency "activerecord", "~>5.2.0"

  spec.add_development_dependency "bundler", "~> 2.0"
  spec.add_development_dependency "rake", "~> 10.0"
  spec.add_development_dependency "rspec", "~> 3.0"
  spec.add_development_dependency "sqlite3"
  spec.add_development_dependency "byebug"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_record-nested_attributes-destroy_if-0.1.0 active_record-nested_attributes-destroy_if.gemspec