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
# app/models/concerns/multiparameter_attribute_assignment.rb | |
module MultiparameterAttributeAssignment | |
include ActiveModel::ForbiddenAttributesProtection | |
def initialize(params = {}) | |
assign_attributes(params) | |
end | |
def assign_attributes(new_attributes) |
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
package ${PACKAGE_NAME}; | |
import android.app.Activity; | |
import android.os.Bundle; | |
#parse("File Header.java") | |
public class ${NAME} extends Activity { | |
public static final String TAG = ${NAME}.class.getSimpleName(); | |
public void onCreate(Bundle savedInstanceState) { |
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
app = angular.module 'MyApplication' | |
CLS_HOVER_DEFAULT = "hover" | |
CLS_ACTIVE_DEFAULT = "active" | |
app.directive 'clsHover', -> | |
restrict: 'A' | |
link: (scope, element, attrs, ctrl) -> | |
clsHover = attrs.clsHover || CLS_HOVER_DEFAULT |
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.exports = (grunt) -> | |
require('load-grunt-tasks')(grunt) | |
grunt.initConfig | |
coffee: | |
compile: | |
files: [ | |
expand: true | |
cwd: 'src/coffeescripts' | |
src: ['**/*.coffee'] |
NewerOlder