Add frozen string literal comment to files.
This commit is contained in:
parent
44e832813c
commit
75046f1d92
2
Gemfile
2
Gemfile
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git'
|
gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git'
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module TopicAnswerMixin
|
module TopicAnswerMixin
|
||||||
def self.included(klass)
|
def self.included(klass)
|
||||||
klass.attributes :has_accepted_answer, :can_have_answer
|
klass.attributes :has_accepted_answer, :can_have_answer
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'translations_manager'
|
require 'translations_manager'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# name: discourse-solved
|
# name: discourse-solved
|
||||||
# about: Add a solved button to answers on Discourse
|
# about: Add a solved button to answers on Discourse
|
||||||
# version: 0.1
|
# version: 0.1
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe "Managing Posts solved status" do
|
RSpec.describe "Managing Posts solved status" do
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
require_dependency 'site'
|
require_dependency 'site'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe TopicsController do
|
RSpec.describe TopicsController do
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
describe TopicAnswerMixin do
|
describe TopicAnswerMixin do
|
||||||
|
|
Loading…
Reference in New Issue