Skip to content

Instantly share code, notes, and snippets.

@Fernan2
Last active February 21, 2017 23:40
Show Gist options
  • Save Fernan2/4e33e9b1092ea15195fc327aca115fed to your computer and use it in GitHub Desktop.
Save Fernan2/4e33e9b1092ea15195fc327aca115fed to your computer and use it in GitHub Desktop.
validates(:name, { presence: true })
def my_method()
item.method()
if subscriber && subscriber.valid?
workdays = ["lun", "mar", "mie", "jue", "vie"]
@user = @user || User.current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment