When render_views is enabled globally, it cannot be disabled with a local render_views(false) call.
rails new reproduce_bug
cd reproduce_bug
echo 'gem "rspec-rails"' >> Gemfile
bundle
defmodule LazyPermutations do | |
def permutations(list) do | |
list | |
|> Enum.sort | |
|> Stream.unfold fn | |
[] -> nil | |
p -> {p, next_permutation(p)} | |
end | |
end |
defmodule Weekday do | |
defstruct name: nil, number: nil | |
def monday, do: %Weekday{name: "Monday", number: 1} | |
def tuesday, do: %Weekday{name: "Tuesday", number: 2} | |
def wednesday, do: %Weekday{name: "Wednesday", number: 3} | |
def thursday, do: %Weekday{name: "Thursday", number: 4} | |
def friday, do: %Weekday{name: "Friday", number: 5} | |
def saturday, do: %Weekday{name: "Saturday", number: 6} | |
def sunday, do: %Weekday{name: "Sunday", number: 7} |
blog_post: | |
body: Body | |
header: Heading | |
summary: Summary | |
topics: Topics #categories |
~/Sites/newsdesk master$ wc config/locales/* | |
3846 19378 188890 config/locales/da.yml | |
3891 20588 186542 config/locales/en.yml | |
3841 15668 186940 config/locales/fi.yml | |
3839 19352 185267 config/locales/no.yml | |
3905 19149 191660 config/locales/sv.yml | |
19322 94135 939299 total |