Skip to content

Commit 027b5ba

Browse files
committed
mentioned that file importer should be registered in a feature flag
1 parent 0ceb9ae commit 027b5ba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/creating_file_importers.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,17 @@ plugged into the host application.
110110

111111
module RainbowStock::Plugin
112112
def configure(config)
113-
config.file_importers.register('rainbow_stock', RainbowStock::FileImporter.new)
113+
config.features.register('rainbow_stock_importer') do |feature_config|
114+
feature_config.file_importers.register(RainbowStock::FileImporter.new)
115+
end
114116
end
115117
end
116118
```
117119

120+
In the above code it can be seen that importer is registered against the feature `rainbow_stock_importer`.
121+
End user will be able to see the importer when feature is enabled for that user.
122+
123+
118124
## Javascript
119125

120126
Backbone javascript view is required from the file importer plugin.

0 commit comments

Comments
 (0)