Eric Davis
24c445cce9
Extracted specs from Rate#for for Rate#for_user_project_and_date #1920
2009-01-16 16:21:45 -08:00
Eric Davis
3451286011
Typo, don't need two rates. Rate.rate_for... #1920
2009-01-16 16:21:18 -08:00
Eric Davis
06f8258b38
Extracted an ugly finder method from Rate#for to a private method. #1920
2009-01-16 16:16:39 -08:00
Eric Davis
68b7df3237
Added specs to test for using the default (today) date. #1920
2009-01-16 16:13:57 -08:00
Eric Davis
69d922a029
Refactored Rate#for to only get one record. #1920
2009-01-16 16:08:13 -08:00
Eric Davis
6a211c3e5e
Rate#for will now return the most current rate for the user matching the parameters. #1920
2009-01-16 16:06:12 -08:00
Eric Davis
b59c87b1f6
Implementing Rate#for's internal logic. #1920
2009-01-16 16:03:15 -08:00
Eric Davis
0d9c7e50de
Added specs for the Rate#for parameter. #1920
2009-01-16 15:54:14 -08:00
Eric Davis
820337576c
Show a lock icon if a Rate is locked. #1915
2009-01-16 15:45:01 -08:00
Eric Davis
38b3fd1124
Added rate_id to the time_entries table
2009-01-16 15:44:31 -08:00
Eric Davis
4ea018b304
Reworded spec descriptions.
2009-01-16 15:34:40 -08:00
Eric Davis
0e8bd2153c
Prevent Rates from being destroyed if they are locked. #1919
2009-01-16 15:33:42 -08:00
Eric Davis
3ffb31fafc
Require that a Rate be unlocked before saving it. #1919
2009-01-16 15:28:34 -08:00
Eric Davis
9b0332bf78
Added a Rate#locked? check. #1919
2009-01-16 15:23:30 -08:00
Eric Davis
931ecae4d1
Renamed the Rates tab to Rate History to match the comp. #1915
2009-01-16 15:17:34 -08:00
Eric Davis
bba40af42a
Cleaned up the rate partial UI to better match the comps. #1915
2009-01-16 15:14:05 -08:00
Eric Davis
33d1f84878
Added a named scope to make history lookups easier, Rate.history_for_user(user). #1915
2009-01-16 15:09:46 -08:00
Eric Davis
5296368183
Added the start of a Rate History table in the Rate partial
...
* Had to do Model level access in the view. Once there is a hook in the
controller, it can be moved to there.
* Added a table listing each rate using the memberships table as a base
#1915
2009-01-16 15:05:52 -08:00
Eric Davis
e1278bcb69
Patched UsersHelper#user_settings_tabs to add a new Rates tab
...
* Wrapped UsersHelper#user_settings_tabs with an alias_method_chain
* Added the new Rate element to the return of user_settings_tabs
* Added RSpecs to confirm the change works without breaking
* Added a partial view for users/rates which will be used by Redmine
when it renders the user edit panel
#1913
2009-01-16 14:42:33 -08:00
Eric Davis
48d394704a
Added data validation for Rates. #1917
2009-01-16 14:14:21 -08:00
Eric Davis
3f39bdaa6b
Added associations to Rate. #1917
2009-01-16 14:00:11 -08:00
Eric Davis
a3c12fed19
Added basic rate model and it's database schema
2009-01-16 13:56:04 -08:00
Eric Davis
bcc80f13fe
Removed Test::Unit
2009-01-16 13:50:59 -08:00
Eric Davis
3cd6610c7f
Added the metadata for registering the plugin to Redmine
2009-01-16 13:47:54 -08:00
Eric Davis
f08f8e548a
Added a description to the README
2009-01-16 13:47:32 -08:00
Eric Davis
f2b85945b4
Added cucumber and rspec testing support
2009-01-16 13:40:12 -08:00
Eric Davis
761a023070
Added licensing documentation
2009-01-16 13:37:49 -08:00
Eric Davis
79c5698431
Updated README documentation
2009-01-16 13:36:40 -08:00
Eric Davis
3274a82946
Added Redmine plugin rakefile
2009-01-16 13:35:06 -08:00
Eric Davis
aa9377d288
Initial generation
2009-01-16 13:29:33 -08:00