Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ActiveAttr mixin. #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Synopsis

Acts_as_xlsx is an active record plugin for Axlsx. It makes generating excel spreadsheets from any subclass of ActiveRecord::Base as simple as a couple of lines of code.

This fork adds support for mixing acts_as_xlsx into [ActiveAttr](https://github.com/cgriego/active_attr).

Feature List
------------

Expand Down
2 changes: 1 addition & 1 deletion acts_as_xlsx.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |s|
s.files = Dir.glob("{lib/**/*}") + %w{ LICENSE README.md Rakefile CHANGELOG.md .yardopts }
s.test_files = Dir.glob("{test/**/*}")

s.add_runtime_dependency 'axlsx', '>= 1.0.13'
s.add_runtime_dependency 'axlsx', '>= 3.0.0.pre'
s.add_runtime_dependency 'activerecord', '>= 2.3.9'
s.add_runtime_dependency 'i18n', '>= 0.4.1'

Expand Down
3 changes: 2 additions & 1 deletion lib/acts_as_xlsx/ar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ def to_xlsx(options = {})
require 'active_record'
ActiveRecord::Base.send :include, Axlsx::Ar


require 'active_attr'
ActiveAttr::BasicModel.send :include, Axlsx::Ar