Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
= Has One Autocreate
Automatic creation of a has_one associated object when it is first accessed.
== Examples
class User < ActiveRecord::Base has_one :profile, :autocreate => true end
class Profile < ActiveRecord::Base belongs_to :user end
user = User.create(:name => 'Dr. User') => #<User id: 1, name: "Dr. User">
Profile.count => 0
user.profile => #<Profile id: 1, title: nil, user_id: 1>
== Install
As a Rails plugin.
./script/plugin install git://github.com/jqr/has_one_autocreate.git
Prefer gems? Add this to your environment.rb and run the following command.
config.gem 'has_one_autocreate'
$ rake gems:install
== Docs
http://rdoc.info/projects/jqr/has_one_autocreate
Homepage:: http://github.com/jqr/has_one_autocreate License:: Copyright (c) 2008 Elijah Miller mailto:elijah.miller@gmail.com, released under the MIT license.
FAQs
Unknown package
We found that has_one_autocreate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.