Commit 1b667dd2 by Kamil Bielawski

Make --w / --wrapper option work

parent 9cf6e0d0
...@@ -29,7 +29,7 @@ module Annotate ...@@ -29,7 +29,7 @@ module Annotate
:timestamp, :exclude_serializers, :classified_sort, :show_foreign_keys, :timestamp, :exclude_serializers, :classified_sort, :show_foreign_keys,
] ]
OTHER_OPTIONS=[ OTHER_OPTIONS=[
:ignore_columns, :skip_on_db_migrate, :wrapper_open, :wrapper_close :ignore_columns, :skip_on_db_migrate, :wrapper_open, :wrapper_close, :wrapper
] ]
PATH_OPTIONS=[ PATH_OPTIONS=[
:require, :model_dir :require, :model_dir
...@@ -75,6 +75,9 @@ module Annotate ...@@ -75,6 +75,9 @@ module Annotate
options[:model_dir] = ['app/models'] options[:model_dir] = ['app/models']
end end
options[:wrapper_open] ||= options[:wrapper]
options[:wrapper_close] ||= options[:wrapper]
return options return options
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment