Skip to content

Instantly share code, notes, and snippets.

@Fernan2
Last active February 22, 2017 00:45
Show Gist options
  • Save Fernan2/09ba62b493237ad22ef76b0553a0dc65 to your computer and use it in GitHub Desktop.
Save Fernan2/09ba62b493237ad22ef76b0553a0dc65 to your computer and use it in GitHub Desktop.
validates :name, presence: true
def my_method
item.method
if subscriber&.valid?
workdays = %w(lun mar mie jue vie)
@user ||= User.current
:key => 'My value'
key: 'My value'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment