EDITOR=vi rails credentials:edit --environment production
- The document that pops up, add one line to
secret_key_base: <whatever you want>
at the root level - Save file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
import Constants from 'expo-constants'; | |
import environment from './environment'; | |
import * as AppAuth from 'expo-app-auth'; | |
import * as Linking from 'expo-linking'; | |
import * as SecureStore from 'expo-secure-store'; | |
import moment from 'moment'; | |
import apiClient from './api_client'; | |
import appSettings from '../../app.json'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ApplicationHelper | |
# This helper will basically create a rest-in-place spans around your content, but will prevent it from being active if editable is false | |
def rest_in_place(text, attribute, editable) | |
css_class = "rest-in-place" if editable | |
content_tag(:span, data: { attribute: attribute }, class: css_class) do | |
text | |
end | |
end | |
end |