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

reflect_on_association issue #419

Open
Taoshi opened this issue Nov 9, 2016 · 4 comments
Open

reflect_on_association issue #419

Taoshi opened this issue Nov 9, 2016 · 4 comments

Comments

@Taoshi
Copy link

Taoshi commented Nov 9, 2016

I have got issue with nested forms inside ActiveAdmin

When i try to do in my activeadmin SeatGroups file
f.has_many :ssrs do |ssr| ... end i have got reflect_on_association for my class.

has_many :ssrs
belongs_to :ssr_group

@edtjones
Copy link
Collaborator

edtjones commented Nov 9, 2016

@Taoshi are ssrs and ssr_groups Her models?

@Taoshi
Copy link
Author

Taoshi commented Nov 9, 2016

yes they extended from

class BaseModel
    include Her::Model 
 end

SeatGroups<BaseModel 

 Ssr<BaseModel 

@pklimenkov
Copy link

is there a big fix you need to do, can you provide some info on how to fix this?

@edtjones
Copy link
Collaborator

Hi there

I haven't investigate this yet, for which apologies. But Her doesn't use ActiveRecord associations, so reflecting on them would mean more code for sure. I would start by looking at the way the associations are defined.

Ed

Sent from my phone: please forgive the brevity.

Ed Jones

On 23 Nov 2016, at 16:58, pklimenkov [email protected] wrote:

is there a big fix you need to do, can you provide some info on how to fix this?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

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

3 participants