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

Add ability to document filters #45

Closed
tfausak opened this issue Aug 15, 2013 · 2 comments
Closed

Add ability to document filters #45

tfausak opened this issue Aug 15, 2013 · 2 comments
Assignees
Milestone

Comments

@tfausak
Copy link
Collaborator

tfausak commented Aug 15, 2013

Similar to #44, I'd love to be able to add programmatically-accessible documentation to individual attributes. This would require adding the ability to inspect an interaction's fitlers programmatically, too. Something like this:

class Interaction < ActiveInteraction::Base
  boolean :a, desc: "It's an attribute, alright!"
  def execute; end
end

Interaction.inputs[:a]
# => "It's an attribute, alright!"
@ghost ghost assigned tfausak Oct 7, 2013
@tfausak
Copy link
Collaborator Author

tfausak commented Oct 7, 2013

This is blocked by #52. Until there's a way to get at the attributes, there's no point in adding descriptions to them.

@tfausak tfausak mentioned this issue Oct 8, 2013
3 tasks
@tfausak
Copy link
Collaborator Author

tfausak commented Nov 14, 2013

This is going to look like this now:

class ExampleInteraction < ActiveInteraction::Base
  boolean :a, desc: 'true or false'
end
ExampleInteraction.filters.first.desc
# => "true or false"

tfausak added a commit that referenced this issue Nov 14, 2013
@tfausak tfausak closed this as completed Nov 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant