Skip to content

Instantly share code, notes, and snippets.

@flyerhzm
Last active May 2, 2020 12:20
Show Gist options
  • Save flyerhzm/2670c75bd2ab02045d6810848fc78378 to your computer and use it in GitHub Desktop.
Save flyerhzm/2670c75bd2ab02045d6810848fc78378 to your computer and use it in GitHub Desktop.
-['.']
+%w[.]
-included do
- has_many :build_items, dependent: :destroy
-end
+included { has_many :build_items, dependent: :destroy }
-array.each { |element| element.to_s }
+array.each(&:to_s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment