Hi Sergio,
Thanks for the heads up. This was a lot easier than I thought. Just had to
get it thru my thick skull that all I had to do is create a helper. Thanks
again Sergio.
module WorkflowsHelper
def options_for_association_conditions(association, record)
if [:from_states, :to_state].include?(association.name)
['workflow_states.workflow_id = ?',record.workflow_id]
else
super
end
end
end
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.