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 * as deepExtend from 'deep-extend'; | |
/** | |
* Add default configurations here | |
*/ | |
const DEFAULT_CONFIG = { | |
config1: 'foo', | |
config2: { | |
nestedConfig1: 'dev' |
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
class InterestsController < ApplicationController | |
load_and_authorize_resource | |
ENTITY_TYPES = { | |
questions: %i[interests creator votes], | |
startups: %i[interests business_stage], | |
educational_resources: %i[interests], | |
users: %i[interests country roles industries] | |
}.freeze |
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
<div id='educational-resources-container'> | |
<%= render @educational_resources %> | |
</div> | |
<%= link_to_next_page @educational_resources, 'Load more', remote: true, id: 'load-more-resources' %> |