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

Allow rule decorators to be used without args #17

Merged
merged 2 commits into from
Feb 4, 2015

Conversation

gregeinfrank
Copy link
Contributor

I've seen people with this issue a couple times, most recently: #16

This PR will allow variable decorators to be used with or without params/parens, like so:

@string_rule_variable(label="My variable!")
def my_var(self):
    return "foo"

### OR

@string_rule_variable
def my_var(self):
    return "foo"

@gregeinfrank
Copy link
Contributor Author

@akurihara

This was referenced Jan 12, 2015
@fuhrysteve
Copy link

👍 Using this and it is working great for me so far!

@akurihara
Copy link
Contributor

@manda986 and I looked at this, looks good!

akurihara added a commit that referenced this pull request Feb 4, 2015
Allow rule decorators to be used without args
@akurihara akurihara merged commit adc0405 into venmo:master Feb 4, 2015
vrsandeep pushed a commit to vrsandeep/business-rules that referenced this pull request May 31, 2019
* Time format without seconds added

* Readme update
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

Successfully merging this pull request may close these issues.

3 participants