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 +1 -1
- data/app/controllers/activities_controller.rb +7 -2
- data/bookyt_projects.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.1
|
|
@@ -3,13 +3,18 @@ class ActivitiesController < AuthorizedController
|
|
|
3
3
|
|
|
4
4
|
def new
|
|
5
5
|
# Allow callers specifying defaults
|
|
6
|
-
|
|
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
|
data/bookyt_projects.gemspec
CHANGED
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:
|
|
4
|
+
hash: 5
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 6
|
|
9
|
-
-
|
|
10
|
-
version: 0.6.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.6.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Roman Simecek
|