endpoint 1.0.0 → 1.0.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.
@@ -10,13 +10,13 @@ class EndpointControllerGenerator < Rails::Generators::NamedBase
10
10
 
11
11
  def add_rabl_template
12
12
  actions.reverse.each do |action|
13
- template 'view.rabl', File.join("app/views/#{file_name}", class_path, "#{action}.rabl")
13
+ template 'view.rabl', File.join("app/views/", class_path, file_name, "#{action}.rabl")
14
14
  end
15
15
  end
16
16
 
17
17
  def add_routes
18
18
  actions.reverse.each do |action|
19
- route %{get "#{file_name}/#{action}"}
19
+ route %{get "#{File.join(class_path, file_name)}/#{action}"}
20
20
  end
21
21
  end
22
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: endpoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: