Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcin Kornek marcinkornek

View GitHub Profile
View Area.js
import React from 'react';
import { View, Text, Button } from 'react-native';
class Area extends React.Component {
static get propTypes() {
return {
name: React.PropTypes.string.isRequired,
};
}
View Area.js
import React from 'react';
class Area extends React.Component {
static get propTypes() {
return {
name: React.PropTypes.string.isRequired,
};
}
render() {
View parking.rb
class Parking < ActiveRecord::Base
belongs_to :address
belongs_to :owner, class_name: 'Person'
has_many :place_rents
accepts_nested_attributes_for :address
before_destroy :finish_place_rents
KINDS = %w(outdoor indoor private street)
You can’t perform that action at this time.