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 Brand < ActiveRecord::Base | |
# Include default devise modules. | |
require 'open-uri' | |
require 'uri' | |
require 'net/http' | |
require 'rest_client' | |
require 'active_support/all' | |
require 'csv' | |
devise :database_authenticatable, :registerable, |
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 'package:flutter/material.dart'; | |
import 'package:gini/components/services/buy/bottom/calendar/table_calendar.dart'; | |
import 'package:gini/miscellaneous/constants.dart'; | |
import 'package:gini/models/availability/availability.dart'; | |
import 'package:gini/models/service/service_calendar.dart'; | |
import 'package:gini/models/service/service_calendar_table.dart'; | |
import 'package:provider/provider.dart'; | |
import 'time_list.dart'; | |
import 'package:intl/intl.dart'; | |
import 'package:flutter_native_timezone/flutter_native_timezone.dart'; |
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 AuthMailer < Devise::Mailer | |
require 'rubygems' | |
require 'send_with_us' #after installing sendwithus_ruby gem, require the send_with_us.rb initializer file | |
helper :application # gives access to all helpers defined within `application_helper`. | |
include Devise::Controllers::UrlHelpers # Optional. eg. `confirmation_url` | |
default from: "[email protected]" | |
def confirmation_instructions(record, token, opts={}) |
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
# An example of elasticsearch & Tire setup for ActiveRecord associations. | |
# | |
# A `Book has_many :chapters` scenario, with mapping and JSON serialization | |
# for indexing associated models. | |
# | |
# Demonstrates three important caveats as of now: | |
# | |
# 1. You you have to use `touch: true` in the `belongs_to` declaration, | |
# to automatically notify the parent model about the update. | |
# |