This file contains hidden or 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
require 'virtus' | |
class Authenticator | |
# Required for Errors & Messages | |
########################################## | |
include Virtus | |
extend ActiveModel::Naming | |
include ActiveModel::Conversion | |
include ActiveModel::Validations |
This file contains hidden or 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
require './lib/enthuse/social_network_mappings' | |
require 'virtus' | |
class Authenticator | |
# Required for Errors & Messages | |
########################################## | |
include Virtus | |
extend ActiveModel::Naming | |
include ActiveModel::Conversion | |
include ActiveModel::Validations |
This file contains hidden or 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
# create the template | |
template = PageOfflineTemplate.new | |
template.quote = quote | |
template.pages = quote.build_pages | |
# Here I render a template with layout to a string then a PDF | |
pdf = PDFKit.new template.render_to_string(:template=>"quotes/review.html.haml") | |
NewerOlder