Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing delegate_belongs_to fields #58

Open
autotelik opened this issue Aug 23, 2017 · 0 comments
Open

Missing delegate_belongs_to fields #58

autotelik opened this issue Aug 23, 2017 · 0 comments

Comments

@autotelik
Copy link
Owner

autotelik commented Aug 23, 2017

delegate_belongs_to fields do not appear in the template output

For example see Spree, the model Spree::Product has following definition

    delegate_belongs_to :master, :sku, :price, :currency, :display_amount, :display_price, :weight, :height, :width, :depth,
:is_master, :has_default_price?, :cost_currency, :price_in, :amount_in, :cost_price, :images

But none of these appear when generating an Excel template,

thor datashift:generate:excel -m Spree::Product -r tmp/product_template.xls

Suspect these will appear at least as instance methods so we need to make sure the catalogue class method can be configured to add those if requested - for example binder does not currently pass any options

model_method_mgr = ModelMethods::Manager.catalog_class(klass)

@autotelik autotelik changed the title delegate_belongs_to fields Missing delegate_belongs_to fields Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant