-
Notifications
You must be signed in to change notification settings - Fork 159
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
url data can be reinitialized #202
base: master
Are you sure you want to change the base?
Conversation
lib/stringex/acts_as_url.rb
Outdated
@@ -96,6 +96,13 @@ def included(base = nil, &block) | |||
def initialize_urls | |||
acts_as_url_configuration.adapter.initialize_urls! self | |||
end | |||
|
|||
# Initialize the url fields for the records that need it. Designed for people who want to update | |||
# <tt>acts_as_url</tt> support once there's already development/production data they'd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [92/80]
lib/stringex/acts_as_url.rb
Outdated
@@ -96,6 +96,13 @@ def included(base = nil, &block) | |||
def initialize_urls | |||
acts_as_url_configuration.adapter.initialize_urls! self | |||
end | |||
|
|||
# Initialize the url fields for the records that need it. Designed for people who want to update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [102/80]
41e3c39
to
54de5d2
Compare
lib/stringex/acts_as_url.rb
Outdated
@@ -96,6 +96,13 @@ def included(base = nil, &block) | |||
def initialize_urls | |||
acts_as_url_configuration.adapter.initialize_urls! self | |||
end | |||
|
|||
# Renitialize the url fields for the all records. Designed for people who want to update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [94/80]
lib/stringex/acts_as_url.rb
Outdated
# encoding: UTF-8 | ||
require "stringex/acts_as_url/adapter" | ||
|
||
require 'stringex/acts_as_url/adapter' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
lib/stringex/acts_as_url.rb
Outdated
@@ -1,5 +1,5 @@ | |||
# encoding: UTF-8 | |||
require "stringex/acts_as_url/adapter" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing magic comment # frozen_string_literal: true.
lib/stringex/acts_as_url.rb
Outdated
# encoding: UTF-8 | ||
require "stringex/acts_as_url/adapter" | ||
|
||
require 'stringex/acts_as_url/adapter' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
lib/stringex/acts_as_url.rb
Outdated
@@ -1,5 +1,5 @@ | |||
# encoding: UTF-8 | |||
require "stringex/acts_as_url/adapter" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing magic comment # frozen_string_literal: true.
@@ -96,6 +96,13 @@ def included(base = nil, &block) | |||
def initialize_urls | |||
acts_as_url_configuration.adapter.initialize_urls! self | |||
end | |||
|
|||
# Renitialize the url fields for the all records. Designed for people who | |||
# want to update <tt>acts_as_url</tt> support once there's already |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespace detected.
will able to update/reinitialize the
url
database column with existing data.