GithubHelp home page GithubHelp logo

laserlemon / periscope Goto Github PK

View Code? Open in Web Editor NEW
273.0 273.0 30.0 585 KB

Push your models' scopes up to the surface.

Home Page: http://laserlemon.github.com/periscope

License: MIT License

Ruby 100.00%

periscope's People

Contributors

ersatzryan avatar fxn avatar laserlemon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

periscope's Issues

Support for Rails 5.1

I get this error when doing the bundle:

Bundler could not find compatible versions for gem "activerecord":
  In Gemfile:
    activerecord (~> 5.1.0)

    periscope-activerecord (~> 2.1.1) was resolved to 2.1.1, which depends on
      activerecord (< 5.1, >= 3)

Issue with Column Name

When a column name is 'open', it is unable to be used by periscope and needs to be renamed. The issue I get is Errno::ENOENT: No such file or directory @ rb_sysopen - 1

Rails 4?

Any plans for a Rails 4 compatible version? 4.0.0.beta seems to be out, so the full release shouldn't be too far away.

Nulls Last

Hi there!

I'm wondering how when sorting on a specific column, how I can push all null values to the end, independent of sort direction.

Rails support

Is it possible to run periscope with Rails 2.3?

Thanks, uros

Custom method definition ignored if it exists in the ORM

I've tested this with Mongoid -- if the method option is set to a method that is provided by Mongoid, it is used instead of a class method defined in the model.

It appears to be due to the fact that periscope calls scoped before chaining the method calls.

[1] pry(MyModel)> show-method order_by

From: [REDACTED] @ line 133:
Owner: #<Class:MyModel>
Visibility: public
Number of lines: 4

def self.order_by(*criteria)
  binding.pry
  super
end

[2] pry(MyModel)> show-method scoped.order_by

From: /Users/greggory/.gem/ruby/1.9.3/gems/origin-1.1.0/lib/origin/optional.rb @ line 166:
Owner: Origin::Optional
Visibility: public
Number of lines: 9

def order_by(*spec)
  option(spec) do |options|
    spec.compact.each do |criterion|
      criterion.__sort_option__.each_pair do |field, direction|
        add_sort_option(options, field, direction)
      end
    end
  end
end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.