bookyt_projects 0.6.0 → 0.6.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -3,13 +3,18 @@ class ActivitiesController < AuthorizedController
3
3
 
4
4
  def new
5
5
  # Allow callers specifying defaults
6
- @activity = Activity.new(params[:activity])
6
+ if params[:activity]
7
+ @activity = Activity.new(params[:activity])
8
+ else
9
+ @activity = Activity.new
10
+ end
7
11
 
8
12
  # Nested resources support
9
13
  @activity.project_id ||= params[:project_id] if params[:project_id]
10
-
11
14
  # Educated guessing of defaults
12
15
  @activity.person = current_user.person if current_user
16
+
17
+ @project ||= Project.new
13
18
 
14
19
  new!
15
20
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bookyt_projects}
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Roman Simecek}]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookyt_projects
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek