Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rails plugin that provides attr_initializable helper to declare read-only attributes that can be mass-assigned at model creation time
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.ruby-version
.travis.yml
Gemfile.rails3
Gemfile.rails3.lock
Gemfile.rails4
Gemfile.rails4.lock
LICENSE
README.md
Rakefile
attr_initializable.gemspec

README.md

attr_initializable

Install gem Build status Coverage status

Rails plugin that provides attr_initializable helper to declare read-only attributes that can be mass-assigned at model creation time

Active Record support

attr_initializable Works with Active Record 3.2.x natively and Active Record 4.0.x with the protected_attributes compatibility gem and is tested against Ruby versions 1.9.3, 2.0.0 and 2.1.0.

Installation

Add gem 'attr_initializable' to your Rails' Gemfile and run bundle install.

Contributing

See .travis.yml for details of the commands that are run as part of the Travis-CI build of this project. The minimum bar for all push requests is that the Travis-CI build must pass. Please also consider adding new tests to cover any new functionality introduced into the project.

To manually run the Travis-CI verification steps on your local machine, you can use the following sequence of commands:

# To test against Active Record 3.2.x
BUNDLE_GEMFILE=Gemfile.rails3 bundle exec rake
# To test against Active Record 4.0.x
BUNDLE_GEMFILE=Gemfile.rails4 bundle exec rake
# Build the gem
gem build attr_initializable.gemspec

Licence

attr_initializable is released under the MIT licence.

Something went wrong with that request. Please try again.