Sha256: a7fe3bb64c4492f5e41ed8664014723218038a74057f58363e554dab9e315944
Contents?: true
Size: 424 Bytes
Versions: 3
Compression:
Stored size: 424 Bytes
Contents
module Rails class Application < Engine protected # Append wagons at the end of all railties, even after the application. def ordered_railties_with_wagons @ordered_railties ||= ordered_railties_without_wagons.tap do |ordered| Wagons.all.each do |w| ordered.push(ordered.delete(w)) end end end alias_method_chain :ordered_railties, :wagons end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wagons-0.2.2 | lib/wagons/extensions/application.rb |
wagons-0.2.1 | lib/wagons/extensions/application.rb |
wagons-0.2.0 | lib/wagons/extensions/application.rb |