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 named logic iris #1095

Merged
merged 7 commits into from
Nov 11, 2014
Merged

Add named logic iris #1095

merged 7 commits into from
Nov 11, 2014

Conversation

0robustus1
Copy link
Contributor

The title pretty much says it all, allow logic-urls to contain the (cleaned) name instead of the numbered id.

self.slug = name.gsub(/[\s*.=]/, '_')
save!
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/EmptyLinesAroundBody: Extra empty line detected at body end.

The slug is used as the param portion of a logic-url. It represents a
'cleaner' name where whitespace is replaced with underscores.
Additionally we also replace dots, stars and equality signs with
underscores.
This migration should contain a safeguard which should ensure that this
never fails (unless there is no logic class i guess...).

private
def set_slug
self.slug = name.gsub(/[\s*.=]/, '_')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please replace = by Eq, * by Star

@eugenk
Copy link
Member

eugenk commented Nov 11, 2014

👍

0robustus1 added a commit that referenced this pull request Nov 11, 2014
@0robustus1 0robustus1 merged commit 5b4b8d6 into staging Nov 11, 2014
@0robustus1 0robustus1 deleted the add_named_logic_iris branch November 11, 2014 13:16
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.

None yet

4 participants