Skip to content

Commit bdb319a

Browse files
committed
Simplify translate gtt_tile_source to layer
1 parent 1e805c9 commit bdb319a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/redmine_gtt/patches/projects_helper_patch.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,7 @@ def render_api_includes(project, api)
1818
super
1919
api.array :layers do
2020
project.gtt_tile_sources.each do |gtt_tile_source|
21-
api.layer(
22-
:id => gtt_tile_source.id,
23-
:name => gtt_tile_source.name,
24-
:type => gtt_tile_source.type,
25-
:options => gtt_tile_source.options,
26-
:global => gtt_tile_source.global,
27-
:default => gtt_tile_source.default,
28-
:position => gtt_tile_source.position,
29-
:baselayer => gtt_tile_source.baselayer
30-
)
21+
api.layer(gtt_tile_source)
3122
end
3223
end if include_in_api_response?('layers')
3324
end

0 commit comments

Comments
 (0)