Skip to content

Commit

Permalink
Gemified!
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Venesz committed Oct 28, 2010
1 parent 2bb4f78 commit b9fa74a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 12 deletions.
2 changes: 0 additions & 2 deletions init.rb

This file was deleted.

14 changes: 14 additions & 0 deletions lib/phat.rb
@@ -0,0 +1,14 @@
require 'phat/core_ext'

if defined? Rails
module Phat
class Railtie < Rails::Railtie
config.before_initialize do
require 'phat/template_handler'
require 'phat/active_record'
ActionView::Template.register_template_handler :phat, TemplateHandler
::ActiveRecord::Base.send :include, ActiveRecord
end
end
end
end
10 changes: 0 additions & 10 deletions lib/phat/railtie.rb

This file was deleted.

13 changes: 13 additions & 0 deletions phat.gemspec
@@ -0,0 +1,13 @@
Gem::Specification.new do |s|
s.name = 'phat'
s.version = '0.0.1'

s.summary = 'Format-agnostic templating for API responses'
s.description = 'Format-agnostic templating for API responses in Rails 3' # TODO

s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5")
s.authors = ['Roland Venesz']
s.date = '2010-10-28'
s.files = %w(README.md LICENSE) + Dir['lib/**/*.rb']
s.require_paths = %w(lib)
end

0 comments on commit b9fa74a

Please sign in to comment.