multiparameter_assignable_attr 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +3 -1
- data/lib/multiparameter_assignable_attr/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -7,9 +7,11 @@ Usage
|
|
7
7
|
=====
|
8
8
|
|
9
9
|
Add the following to your Gemfile:
|
10
|
+
|
10
11
|
gem 'multiparameter_assignable_attr'
|
11
12
|
|
12
13
|
and run 'bundle install' (or just 'bundle')
|
14
|
+
|
13
15
|
$ bundle
|
14
16
|
|
15
17
|
That's it, you can now mark transient atributes as multiparameter-assignable with the following macro:
|
@@ -20,7 +22,7 @@ See below for more info and examples.
|
|
20
22
|
|
21
23
|
More Info
|
22
24
|
=========
|
23
|
-
Let's say you have a class "Member" and you have added a transient "enrollment_time" attribute to it (perhaps so that you can cleanly place separate date and time inputs in
|
25
|
+
Let's say you have a class "Member" and you have added a transient "enrollment_time" attribute to it (perhaps so that you can cleanly place separate date and time inputs in a form for the model). If you have your model definition as follows:
|
24
26
|
|
25
27
|
class Member
|
26
28
|
attr_accessible :name, :email, :enrollment_date
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multiparameter_assignable_attr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
description: Patch for multiparameter-wise assignment of transient (non-db-backed)
|
63
|
-
model attributes.
|
63
|
+
model attributes in Rails' (Active Record).
|
64
64
|
email:
|
65
65
|
- nzaillian@gmail.com
|
66
66
|
executables: []
|
@@ -136,7 +136,7 @@ rubygems_version: 1.8.24
|
|
136
136
|
signing_key:
|
137
137
|
specification_version: 3
|
138
138
|
summary: Patch for multiparameter-wise assignment of transient (non-db-backed) model
|
139
|
-
attributes.
|
139
|
+
attributes in Rails' (Active Record).
|
140
140
|
test_files:
|
141
141
|
- test/dummy/app/assets/javascripts/application.js
|
142
142
|
- test/dummy/app/assets/stylesheets/application.css
|